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

[syncfusion_flutter_charts] Support specifying a maximum width for ColumnSeries #2213

Open
btrautmann opened this issue Dec 18, 2024 · 0 comments
Labels
charts Charts component open Open

Comments

@btrautmann
Copy link

Use case

I would like to be able to constrain a ColumnSeries to never be wider than a certain width. In my use case, the user can constrain the data down to a small number of y values, e.g 1, at which point the ColumnSeries becomes very wide:

Screenshot 2024-12-18 at 1 19 14 AM

I'd prefer it if I could specify, say: maxWidth: 16 instead of only being able to play with the width parameter`, so that even if there is only one datapoint, it would look like this:

Screenshot 2024-12-18 at 1 20 14 AM

Is this maybe already possible?

Proposal

Add a maxWidth parameter:

ColumnSeries(
  maxWidth: 16, // New
  ...
),

One issue with this is that it would be confused with the width parameter which may conflict.

@VijayakumarMariappan VijayakumarMariappan added charts Charts component open Open labels Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
charts Charts component open Open
Projects
None yet
Development

No branches or pull requests

2 participants