Jump to content
Software FX Community

YAxis scaling when using SetScrollView on the XAxis


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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...