Jump to content
Software FX Community

YAxis scaling when using SetScrollView on the XAxis


Hates_

Recommended Posts

If I am loading in 100 points with the values 1 to 100 and limit the user's view of the data with chart1.AxisX.SetScrollView(1, 50), as the data goes all the way up to 100 on the last point the YAxis still shows 1 - 100 rather then 1-50 in relation to the current set of displayed data. What I would like to do is have the YAxis scale to be well matched to the currently shown data. So while showing points 1 - 50 is have the YAxis only display 1-50, then if I progress onto points 2-51 have the YAxis recalculate to display 2-51 etc etc.

 Any help would be greatly appreciated. 

Link to comment
Share on other sites

The Y-Axis Min and Max are updated with the whole dataset not with the current scroll view.

If you want to do this you will have to implement it in your code. You can capture the UserScroll event and calculate and set the Min and Max using only the points within the current view.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...