Can i have two axes like in the image in the right and left of the bar chat?

Here is what i want to achieve:
Screenshot 2024-12-25 at 11.53.00 AM.png


1 Reply

YG Yuvaraj Gajaraj Syncfusion Team December 26, 2024 11:56 AM UTC

Hi Yawar,


We cannot render the additional axis without a series. However, you can achieve this requirement by adding a secondary series with all the y-values set to 0, mapping it to a secondary axis with opposedPosition set to true, and customizing its axis labels using the axisLabelFormatter callback. Also, we have attached a sample below for your reference. 


https://help.syncfusion.com/flutter/cartesian-charts/axis-customization#placing-axes-at-the-opposite-side

https://help.syncfusion.com/flutter/cartesian-charts/callbacks#axislabelformatter


Screenshot:

 

Thanks,

Yuvaraj.


Attachment: f195614_7e22e81f.zip

Loader.
Up arrow icon