Pre loader

VisibleRange Limits

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

Answered
1
0

I am trying to set the extents of a chart beyond where the data stops, ex. data stops at 22 hours and I would like the chart to go to 24 hours. I would also like double clicking to go back to 24 hours after zooming, and I would like to be able to retrieve this extent later. Right now I set the visible range to 24, but it automatically re-sizes to 22 and when I use XAxis.GetMaximumRange, it also gives me 22. I would like to set the min and max to a specific number, so I don’t think GrowBy is the answer. I tried AutoRangeOnStartup but it seems to be deprecated. Is there any way to do what I am trying to achieve?

Thanks,
Greg

  • You must to post comments
Best Answer
1
0

Hi Greg,

We’ve had similar requests from users earlier, so please, refer to this thread for more detailed information about implementation. Basically, you need to add own ViewportManager to the chart.

Please, feel free to ask if you have more questions or need any assistance.

UPDATE 2014

The VisibleRangeLimit property has been introduced in SciChart v3.0. It is used internally to clip the visible range and when performing ZoomExtents calculations:

<s:NumericAxis VisibleRangeLimit="{Binding DoubleRangeToLimitZoom}"/>

Best regards,
Yuriy

  • Sean Clifford
    Hmm, that seems a bit complicated for my situation, maybe that isn't the best way to approach it. Is there any way I can set the max and the min of the overview to my own values instead of the overview just using the extents? Here is my problem. I have points like (3,1)(4,2)(5,1) and the user requests everything from 2 - 6. When the data gets graphed it only shows 3 - 5, which is okay. But the problem comes when the user tries to graph a different data set on a new graph below it with a shared x-axis. the new data is (2,2)(4,4)(6,6). I would like some way to figure out that the original intent was to graph everything from 2 - 6 (ex. overview min, overview max). And I need a way to see (2,2)(6,6) using the overview (which would also work if the range of the overview was hard coded to 2 - 6). Is there an easy way to do this? Thanks, Greg
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies