Hi Alex
Clamping Axis.Visiblerange
in SciChart WPF can be achieved with a VisibleRangeChanged
event handler
Take a look at Clipping the Axis.VisibleRange on Zoom and Pan
Clipping Axis.VisibleRange in Code To clip the VisibleRange and force a certain maximum or minimum, just use the following code:
axis.VisibleRangeChanged += (s, e) => { // e is VisibleRangeChangedEventArgs // Assuming axis is NumericAxis if (e.NewVisibleRange != null && e.NewVisibleRange.Min < 0) { // Force minimum visiblerange to zero always ((NumericAxis)sender).VisibleRange = new DoubleRange(0, e.NewVisibleRange.Max); } };
There are other methods in there such as using VisibleRangeLimit
but these have their limitations (no pun intended), such as not clamping when user zoom/pan occurs
- Ari Sagiv asked 9 years ago
- You must login to post comments
We have now published the SciChart Updater Tool as a VSIX package compatible with Visual Studio 2015, which is available from the Visual Studio Gallery.
For full instructions on how to install and use the SciChart.UpdaterTool to migrate from v3 to v4, please see our migration guide.
Best regards,
Andrew
- Andrew Burnett-Thompson answered 9 years ago
- You must login to post comments
Andrew —
So I installed 2013 Community Edition, and I was able to run the addin, but when running it, I received a whole bunch of “Error on creating copy” on the log. (Show in the attached image).
None of the namespaces have been updated when I checked the .cs files that use them.
Should I wait until you create something for VS 2015?
— Ari
- Ari Sagiv answered 9 years ago
- last edited 9 years ago
- Hi Ari, is there any chance you can send us over the solution you’re trying to upgrade? My personal email is andrew [at] abtsoftware.co.uk. Or the support at scichart.com email.
- You must login to post comments
Hello Andrew,
I have also Visual Studio 2015 Professional and only Visual Studio 2013 express, which couldn’t handle add Ins.
I hope you create an update tool for VB 2015 in the near future.
Regards
Frank
- Frank Resch answered 9 years ago
- Hi Frank, our team is working on it as we speak. We’re unable to fix issues with upgrading code as yet, no-one has given us code to test it out on.
- Is the new tool available? I’m having the same issue.
- You must login to post comments
Please login first to submit.