Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Column Chart Series spacing #876

Open
alessandroToninelli opened this issue Oct 25, 2024 · 1 comment
Open

Column Chart Series spacing #876

alessandroToninelli opened this issue Oct 25, 2024 · 1 comment
Labels
charts Charts component waiting for customer Cannot make further progress until the customer responds

Comments

@alessandroToninelli
Copy link

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]
@VijayakumarMariappan VijayakumarMariappan added charts Charts component open Open and need to address labels Oct 28, 2024
@Kaviyarasansf4298
Copy link

Hi,

We have reviewed your query regarding the space between the columns in the cartesian chart. As per default behavior, the width of the columns adjusted based on the number of series, spacing and x-axis axis range.

Additionally, you can customize the column width and spacing,
The spacing property is used to change the spacing between two segments.
The width property is used to change the width of the rectangle.

UG Link : Column width and spacing

For more details, we have attached the sample. Kindly refer to the sample and modify it according to your requirements.
If you need further assistance or have additional questions, please let us know!

BD_676601
BD_676601.zip

Regards,
Kaviyarasan Arumugam

@LavanyaGowtham2021 LavanyaGowtham2021 added waiting for customer Cannot make further progress until the customer responds and removed open Open and need to address labels Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
charts Charts component waiting for customer Cannot make further progress until the customer responds
Projects
None yet
Development

No branches or pull requests

4 participants