How to set YAxes'range automaticly?
Moderator: Queue Moderators
-
- Posts: 12
- Joined: Thu Feb 28, 2019 1:57 am
How to set YAxes'range automaticly?
Hi, when creat chart, I usually use "chart.ViewXY.YAxes[0].SetRange(min, max);". Now, I want to set this range automaticly because I don't konw the value of YAxes when it is working, how to do it?
-
- Posts: 141
- Joined: Wed Mar 27, 2019 1:05 pm
Re: How to set YAxes'range automaticly?
Hello,
There is AutoYFit -option available in ZoomPanOptions, which regularly updates the y-axis range to show all the data. It could be useful here. AutoYFit is also configurable, for example the update interval can be changed.
There is AutoYFit -option available in ZoomPanOptions, which regularly updates the y-axis range to show all the data. It could be useful here. AutoYFit is also configurable, for example the update interval can be changed.
Code: Select all
_chart.ViewXY.ZoomPanOptions.AutoYFit.Enabled = true;
-
- Posts: 12
- Joined: Thu Feb 28, 2019 1:57 am
Re: How to set YAxes'range automaticly?
Thank you.