We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Stacked column chart can dynamic y axes

In the web example, I see the model uses y1, y2, y3, and y4, but for my problem, it's not possible to determine how many y-values there are. How can I make a model to dump data into stackedcolumnseries.

I have a list of data taken from the API, with the following form




The chart I want to draw is shown below.

ThanksCó thể là hình ảnh về văn bản cho biết '30/10/21 31/10/21 Code1 Code2'

1 Reply

LP Lokesh Palani Syncfusion Team December 1, 2022 01:10 PM UTC

Hi Nguyen,

Greetings from Syncfusion.

We have already documented the details for rendering the Flutter chart using the JSON data. So, you can achieve your requirement by referring to the following KB and SB samples.

KB - https://www.syncfusion.com/kb/11674/how-to-render-a-flutter-chart-using-the-json-data-sfcartesianchart

SB sample - https://flutter.syncfusion.com/#/cartesian-charts/data-source/json

Also, you can find the chart sample in KB too. Hope the links above are useful to you.  Please let us know if you need any further assistance on this.


Lokesh Palani.

If this post is helpful, please consider Accepting it as the solution so that other members can locate it more quickly

Live Chat Icon For mobile
Up arrow icon