Pre loader

AutoRange without affecting zoom for a scichartsurface

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

1
0

I found a post on here regarding this topic but the link to the solution was a dead link.

I want to Autorange without affecting my zoom abilities. If I set AutoRange=”Always”, then I can’t zoom. If I set AutoRange=”Once”, then it does it the first time but I have to double click every time after that. What is the solution to this issue (This is an issue!). Fixing this would not be adding a new feature, it would be removing a problem within the code.

Edit: I think a solution would be to fire an event on DataSeries Changed. Is there an event that corresponds to this? I searched through the dependency properties and couldn’t find anything like that.

Edit: I used the Rendered event and called scichart.ZoomExtents(). I thought this would work, but it doesn’t resize properly either.

Edit: I want to add that I understand the use case for real time data, but I am looking at a snapshot. I can choose different snap shots but they don’t change once chosen. I need to update the range on each choice but then allow me to zoom in between.

Edit: I think that the scichart is being zoomed before the new dataseries is set. I can’t prove it, but that is what my gut tells me.

  • You must to post comments
0
0

Hi Ryan

A common problem! We have a number of FAQs and articles on this topic.

Hope this helps!

Best regards,
Andrew

  • Ryan Woods
    Hello Andrew, the funny thing is that, on the OnPropertyChanged event, even though the property is changed, it seems as if the binding is not set, yet. So, when we zoom to fit, the chart’s dataseries is not yet set.
  • Andrew Burnett-Thompson
    Hi Ryan, I think we need to see your code (simple solution to reproduce is preferred as it greatly shortens investigation time). There is a known timing issue between appending data & calculated autoranges but if you set VisibleRange yourself then these are avoided
  • 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