Hi Alex,
We analyzed your query “On scrolling the chart, SecondaryAxis (Price) minimum and maximum be adjusted to the highest price and lowest price of these 100 candles”. You can achieve this requirement with the help of Zooming event like PanChanged event which is occurred while scrolling.
We can get the visible range datapoints using the series.GetDataPoints method. After getting the data points and we can find minimum and maximum value for secondary axis from the data points and set the Minimum and Maximum range for the secondary axis. Please refer below code snippet for your reference.
|
List<object> data;
//You can get the visible datapoints count by using the list.
data = series.GetDataPoints(primaryAxis.VisibleRange.Start, primaryAxis.VisibleRange.End, secondaryAxis.VisibleRange.Start, secondaryAxis.VisibleRange.End); |
By changing the Minimum and Maximum range of secondary axis while scrolling, chart UI looks like flickering.
Thanks,
Gayathri M.