Jump to content
Software FX Community

Fractional zooming for DataPath on x-axis


Recommended Posts

Is there a way to mimic the Selection scrolling mechanism for a DataPath x-axis, by setting the zoom to a percentage of the visible view?

What I mean is, say I have daily closing stock prices going back 1 year. There are gaps in the data for weekends, but these gaps are collapsed by DataPath, as they should be. If I use selection zooming, I can scroll left and right and it looks consistent; the fraction of the total visible area remains constant.

I'd like to do this programatically using SetScrollView(), but I can't figure out any way to do this at all. It would work if there were a way for me to say "show between 20% and 30% of the visible range," which I can't do based on the total date range if there are gaps in the date data, as the same time span could contain more or fewer points depending on the time span selected.

Is there a recommended approach?


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...