Posted 21 February 2023, 9:31 pm EST
Hi Fabio,
The origin of an axis is determined by the data that is displayed on it. In your sample application, since the X-axis data starts from “1”, resetting the origin would shift it to the first data point of “1”. To fix this issue, we can add a dummy data point to start rendering from 0 instead.
In case you have added axis scroll bars to the flexchart, changing the axis properties may not have any effect. To solve this problem, you can set the lower value of the axis scroll bars to 0 when a button is clicked, as shown in the provided code snippet.
button1.Click += (s,e) =>{
if(_horizontalScrollbar!=null && _verticalScrollbar != null)
{
_horizontalScrollbar.LowerValue = 0;
_verticalScrollbar.LowerValue = 0;
}
};
Kindly refer to the attached sample for implementation. (SeriesUpdateChartResize_mod.zip)
If the issue still persists even after trying the suggested solution, please provide us with a video showing the issue so that we can better understand and analyze the problem.
Thanks & Regards,
Aastha