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.

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 11:13 AM Nov 6,2015 01:10 AM WPF 3
loading
Tags: SfSurfaceChart
Jeremie Clos
Asked On November 4, 2015 11:13 AM

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 12:59 AM

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 05:23 AM

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 01:10 AM

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.

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.

;