I am using ColumnSeries. Is there any way to make the columns start from -100 value? I want this columns to go from -100 to -30, or from -100 to a maximum of 0. I prefer not to use low and high chart.
Hi Adrian,
We have validated your query and we suspect that your requirement is to set the y-axis range from -100 to 0. You can achieve your requirement by setting the y-axis minimum as -100, maximum as 0, and setting x axis crossesAt value as -100 to render a column series upwards like the below screenshot. We have attached a sample for your reference.
Output:
Refer to the following documentation for more details:
https://help.syncfusion.com/flutter/cartesian-charts/axis-types#customizing-range
https://help.syncfusion.com/flutter/cartesian-charts/axis-customization#axis-crossing
If the above solution does not meet your requirement, please share your chart codes or screenshot as per your requirement, which will help us to assist you in a better way.
Regards,
Yuvaraj.
Hi Adrian,
We have validated your query and we suspect that your requirement is to set the y-axis range from -100 to 0. You can achieve your requirement by setting the y-axis minimum as -100, maximum as 0, and setting x axis crossesAt value as -100 to render a column series upwards like the below screenshot. We have attached a sample for your reference.
Output:
Refer to the following documentation for more details:
https://help.syncfusion.com/flutter/cartesian-charts/axis-types#customizing-range
https://help.syncfusion.com/flutter/cartesian-charts/axis-customization#axis-crossing
If the above solution does not meet your requirement, please share your chart codes or screenshot as per your requirement, which will help us to assist you in a better way.
Regards,
Yuvaraj.
I couldn't solve it with 'corrsesAt' feature. I managed to solve it with 'axisLabelFormatter'. What I did was to go from 0 to 100 with an interval of 20. Then, in the 'axisLabelFormatter' I change the text substracting 100 to the value of the y label, so that if it's 20 it will be -80. I had to change also the y values of the columns (33 is 67, 20 is 80, 90 is 10)
Hi Adrian,
We are glad to hear that the issue is resolved at your end. Please get back to us if you need any other assistance.
Regards,
Sriram Kiran