We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Chart Expander

Thread ID:

Created:

Updated:

Platform:

Replies:

126208 Sep 30,2016 03:13 PM Oct 9,2016 11:45 PM WPF 6
loading
Tags: SfChart
Thanh Tomas Dang
Asked On September 30, 2016 03:13 PM

Hello,

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?

Thank you,
T.D.

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.

Devi Aruna Maharasi Murugan [Syncfusion]
Replied On October 3, 2016 08:32 AM

Hi Thanh, 
  
Thanks for contacting Syncfusion Support. 
  
We can achieve your requirement with SelectionZoomingEnd event of SfChart. We have prepared a demo sample based on requirement and it can be downloaded from below link, 
  
Sample: ZoomingChart 
  
Please refer our UG documentation link to know more about SelectionZoomingEnd event, 
  
  
Regards, 
Devi 





Thanh Tomas Dang
Replied On October 5, 2016 02:27 AM

Hello Devi,

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.

Thank you,
Thanh

Thanh Tomas Dang
Replied On October 6, 2016 03:29 AM

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,
Thanh 

Devi Aruna Maharasi Murugan [Syncfusion]
Replied On October 6, 2016 09:14 AM

Hi Thanh, 
  
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, 
  
  
Regards, 
Devi 




Thanh Tomas Dang
Replied On October 7, 2016 04:49 AM

Hi Devi,

thank you, this is what I needed!

Thanh

Devi Aruna Maharasi Murugan [Syncfusion]
Replied On October 9, 2016 11:45 PM

Hi Thanh, 
  
Thanks for your update. 
  
Please contact us, if you need any further assistance. 
  
Regards, 
Devi 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;