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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

What would be the simplest way of superpose a line chart to a contour chart?

Thread ID:

Created:

Updated:

Platform:

Replies:

121037 Nov 4,2015 04:13 PM UTC Nov 6,2015 06:10 AM UTC WPF 3
loading
Tags: SfSurfaceChart
Jeremie Clos
Asked On November 4, 2015 04:13 PM UTC

Hello,

I am trying to accomplish the following: having a SfChart on which I can have a ScatterSeries (representing data), a LineSeries (representing a trend, calculated by my own code logic) and to which I superpose a SfSurfaceChart in order to have a contour plot representing a kernel density estimation based on the same data from which I go the initial trend. Right now I am struggling at aligning the controls and synchronizing the calculations, is there an easier way of achieving this?

Regards,
Jeremie

Rachel A [Syncfusion]
Replied On November 5, 2015 05:59 AM UTC

Hi Jeremie,

Thanks for contacting Syncfusion support.

We have prepared the sample based on your requirement by mapping the SfChart size to contour chart. You can download the sample from the following location.

Sample: SurfaceChart_WPF_Sample

You can get the output like the following image.



Regards,
Rachel. A


Jeremie Clos
Replied On November 5, 2015 10:23 AM UTC

Hi Rachel,

Thank you for your fast answer. Is there any way to lock the ratios so that they stay superposed regardless of the user scaling the window?


Rachel A [Syncfusion]
Replied On November 6, 2015 06:10 AM UTC

Hi Jeremie,

Thanks for the update.

We can achieve your requirement by mapping the contour size to SfChart in SizeChanged event. We have modified the sample for your reference and you can download the sample from the following location.

Sample: SfSurfaceChart_WPF_Sample
 
Regards,
Rachel. A

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.

Warning Icon 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.Close Icon

;