I'd like to implement an "expander" feature - e.g. Selection zooming that would display the zoomed area in a separate window/chart.
From the top of my head, I'm assuming that I could bind the mouse events on the chart to create a selection rectangle, get the data points, and push them into a new series in a separate chart. Would this be the way to go, or is there any better solution?
PS: I realize I created 2 posts with 2 separate issues, but I did not want to group them into one to stay on topic. If I should not have done this, I apologize.
thank you for the solution and the example! I'd like to ask - is it possible to "consume" the zooming event on the original chart? I'd like to zoom the newly opened chart only and leave the original as it is.
TTThanh Tomas DangOctober 6, 2016 07:29 AM UTC
To add to my last post: I've realized you can "remove" the zoom factor and position by setting those to 1/0, so I can reset the zooming like that.
A quite different question though: Am I able to draw an annotation in the same position as the ZoomRect of the SelectionZoomEndEventArgs? I've tried converting the various properties of the ZoomRect using Primary/Seconday axis CoefficientToValue/ValueToCoefficient, but none seem to give me the desired numbers.
The documentation also mentions using the actual chart's PointToValue method, but I cannot access that right now due to using MVVM bindings - is there an easy way of doing that?
Thank you again,
DADevi Aruna Maharasi Murugan Syncfusion Team October 6, 2016 01:14 PM UTC
Thanks for your update.
We are able to draw annotation in zoom rect position by calculating the point with PointToValue method of chart. We have prepared a demo sample based on your requirement and it can be downloaded from below link,