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

[help needed] Cant find a way to build such chart #883

Open
dkati opened this issue Dec 19, 2024 · 1 comment
Open

[help needed] Cant find a way to build such chart #883

dkati opened this issue Dec 19, 2024 · 1 comment
Labels
charts Charts component waiting for customer Cannot make further progress until the customer responds

Comments

@dkati
Copy link

dkati commented Dec 19, 2024

image

I have tried everything but still cant understand how to build such thing...
Any suggestions/ideas?

@VijayakumarMariappan VijayakumarMariappan added charts Charts component open Open and need to address labels Dec 24, 2024
@Hariram-SF4428
Copy link

Hi @dkati,

We have analyzed your requirement, and currently, our default RangeColumnSeries does not directly support achieving the desired data label UI. However, we have provided a workaround using the SfCartesianChart to render both ColumnSeries and RangeColumnSeries. The RangeColumnSeries is customized with the onCreateRenderer method by extending the series and segments, which overrides the default paint method to draw data labels inside bordered rectangles above each column. The labels are dynamically positioned and styled using the TextPainter widget for proper alignment and appearance.

For more details, please refer to the following resources that explain how to customize series effectively:

KB Link: How to render a customized column chart (SfCartesianChart)
Blog Link: Spice Up Your Data Visualization with Flutter Charts Series Customization

Please find the attached demo and sample for your reference.

Sample: gh_883.zip
Screenshot:
image

Regards,
Hariram S

@LavanyaGowtham2021 LavanyaGowtham2021 added waiting for customer Cannot make further progress until the customer responds and removed open Open and need to address labels Jan 8, 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