Pre loader

1

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

All Answers » Re: Chart modifier for zooming to region of axis » Comments for "Re: Chart modifier for zooming to region of axis"
  • Hugoagogo
    I had come across this, but feel it is a very unintuitive method to zoom in, I was hoping for something similar to when using RubberBandXyZoomModifier a region of the graph is highlighted, and is then zoomed to when the mouse is released. This is also much more performant on large data sets.
  • Andrew Burnett-Thompson
    Oh I see, well in that case we don’t support it out of the box, but it should be easy to create using our CustomModifier API https://www.scichart.com/documentation/v4.x/Custom_Modifiers_–_ChartModifierBase_API.html Did you want us to do it for you? We could as a very short consultancy/customisation project. I’d estimate 1/2 days work.
  • Hugoagogo
    I have this all working nicely, except for some edge cases if leaving the plot when dragging, is there any reason why the MouseButtons Property is always None for the mousemove event.
  • Andrew Burnett-Thompson
    You need to capture MouseButton in the OnModifierMouseDown handler. It’s also worth using ChartModifierBase.ParentSurface.CaptureMouse and ReleaseMouseCapture in MouesDown/Up to help with the issues like when mouse leaves the plot. Fancy sharing your solution?
  • Hugoagogo
    Ok I will look into capture mouse. I do look at the mouse button in the mouse down event I would still have through that the mouse button on the drag event would just show what buttons were down at the time of the move. I will share it when I have tidied it up a bit and commented, it will still have a bunch of stuff hard coded through.
  • Hugoagogo
    I haven’t posted this yet as we have now purchased scichart (instead of using the trial) since we now have the source I have been writing my own modifier based on the source code of RuberBandXyZoomModifier is it still ok if I post this there.
  • Andrew Burnett-Thompson
    I can’t say without seeing it – but I would say not to be on the safe side. If you’re simply inheriting a modifier with some small modifications it is OK