Skip to content

Column Chart Series spacing #876

Closed
Closed
@alessandroToninelli

Description

@alessandroToninelli

Bug description

I can't reduce the space between the series of this graph. I have already increased the width to 0.9 but there is nothing to do.

Steps to reproduce

  var column = ColumnSeries<ClistatChartFokDataImport, String>(
          width: 1,
          spacing: 0.0,
          dataSource: widget.data.imports,
          isVisibleInLegend: true,
          color: clkColor[import.clk],
          xValueMapper: (datum, index) {
            var xBuffer = StringBuffer();
            if (import.date.year != null) {
              xBuffer.write(import.date.year.toString());
            }
            if (import.date.month != null) {
              var monthString =
                  DateFormat('MMMM').format(DateTime(0, import.date.month!));
              xBuffer.write(" ${monthString}");
            }

            return xBuffer.toString();
          },
          yValueMapper: (datum, index) {
            return import.imp;
          },
          name: import.clk);

Code sample

Code sample
[Add your code here]

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]
Screenshot 2024-10-25 at 18 11 04

Stack Traces

Stack Traces
[Add the Stack Traces here]

On which target platforms have you observed this bug?

macOS

Flutter Doctor output

Doctor output
[Add your output here]

Metadata

Metadata

Assignees

No one assigned

    Labels

    chartsCharts componentsolvedSolved the query using existing solutions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions