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.

Implementing RotatedSpline series in sfChart

Thread ID:

Created:

Updated:

Platform:

Replies:

130314 May 5,2017 05:19 PM May 9,2017 07:34 AM WPF 3
loading
Tags: Chart
Andy Pybus
Asked On May 5, 2017 05:19 PM

I am implementing a UserControl which is part of a medical simulation system.

The user is required to advance a cardiac catheter into the heart by 'dragging' on a slider - which will then advance the catheter on the Chest XRay (chart background).

The coordinates of the possible catheter tip locations are contained within a bound list of XY values.

I need to draw a 'smoothed' line ('SplineSeries') to represent the catheter and, because the path of the catheter is vertical, I must use a vertical chart.

I can achieve the desired result by modifying your SplineChartDemo_2012, but am not able to find the chart type 'RotatedSpline' when I try to implement it myself using sfChart. Implementing it as a 'SplineSeries' (without rotation) produces bizarre results.

I have attached skeletal working and non-working versions of the application. Your working version represents what I am trying to achieve.

I look forward to hearing from you,

Andy Pybus

Attachment: SPLINE_c26d0a0f.zip

Devi Aruna Maharasi Murugan [Syncfusion]
Replied On May 8, 2017 09:10 AM

Hi Andy, 
  
Thanks for contacting Syncfusion Support. 
  
We can achieve the RotatedSpline behavior in SfChart by enabling the IsTransposed property of chart series and it can be set as shown in the below code snippet, 
 
<syncfusion:SplineSeries x:Name="RIJSeries" IsTransposed="True" > 
  
Please find the output screenshot, 
 
  
We have modified the provided sample and it can be downloaded from below link, 
  
Sample: Spline 
  
Regards, 
Devi 




Andy Pybus
Replied On May 8, 2017 05:06 PM

Dear Devi,

Thank you for your (as ever) excellent assistance.

I had, in fact, tried 'IsTransposed' before, but somehow omitted it when I  'Inverted' the chart.

Your solution works perfectly.

Andy


Santhiya Arulsamy [Syncfusion]
Replied On May 9, 2017 07:34 AM

Hi Andy,

Thanks for the update.We are glad to know your problem resolved. 

Please let us know if you have any queries.

Thanks,
Santhiya 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.

;