syncfusion / flutter-examples

This repository contains the Syncfusion Flutter UI widgets examples and the guide to use them.
Other
1.98k stars 775 forks source link

Column Chart Series spacing #876

Open alessandroToninelli opened 3 weeks ago

alessandroToninelli commented 3 weeks ago

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 ```dart [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 ```dart [Add the Stack Traces here] ```

On which target platforms have you observed this bug?

macOS

Flutter Doctor output

Doctor output ```console [Add your output here] ```