How can I change the initial xaxis position?

I want to specify the initial position of xvalue in a chart by index.

Is such a property available?

If there is such a property, please let me know.

I would also like a link to the documentation that describes it.


1 Reply 1 reply marked as answer

YG Yuvaraj Gajaraj Syncfusion Team January 20, 2023 09:57 AM UTC

HI Takuya,


Greetings from Syncfusion.


We have checked your query and you can achieve your requirement by using the visibleMinimum and visibleMaximum properties in the x-axis, which will help you to render an x-axis based on the given visible range. We have shared the code snippet and UG documentation below for your reference.


Code snippet:


SfCartesianChart(
primaryXAxis: NumericAxis(
visibleMinimum: // x axis minimum range,
visibleMaximum: // x axis maximum range,
),
// Other required properties
)


UG, 

https://help.syncfusion.com/flutter/cartesian-charts/axis-customization#visible-minimum

https://help.syncfusion.com/flutter/cartesian-charts/axis-customization#visible-maximum



If this is not your case then, please share more information on your requirement in detail, along with screenshots or screen recordings. This will help us assist you in a better way.


Regards,

Yuvaraj


Marked as answer
Loader.
Up arrow icon