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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Spline chart

Thread ID:

Created:

Updated:

Platform:

Replies:

59697 Apr 19,2007 09:14 PM UTC Apr 23,2007 09:15 PM UTC WinForms 4
loading
Tags: Chart
Navaneeth Rajkumar
Asked On April 19, 2007 09:14 PM UTC

Hi,
The below is the code I am using to plot a line chart with the chart type as Spline.. This works fine when there are 10-15 points. But my curve has 350 points and the spline looks more like a Line curve...


ChartDataBindModel model1 = new ChartDataBindModel(ds,"");
model1.XIndex = 0;
model1.YIndexes = new int[]{2};

ChartSeries series1 = this.Chart.Model.NewSeries("1", ChartSeriesType.Spline);
series1.SeriesModelImpl = model1;

Please advice
Thanks
Tom


Ramya R [Syncfusion]
Replied On April 20, 2007 11:05 AM UTC

Hi Tom,

I was not able to reproduce the condition that you have mentioned here.

Could you please provide me with a sample which reproduces the issue that you mentioned here, so that it would help me in analyzing the issue?

Thanks & Regards,
Ramya.

Navaneeth Rajkumar
Replied On April 20, 2007 02:13 PM UTC

Please View attached file for detailed description..

Curve.zip

Rajesh C [Syncfusion]
Replied On April 20, 2007 09:06 PM UTC

Hi Tom,

Thanks for your detailed explanation.

The scatter chart type having special property for adjusting the spline tension. Please use the ScatterSpline chart and you can get the smooth curve by adjusting the ScatterSplineTension property. Please refer to the following code snippet.

[ C# ]
series1.ScatterConnectType = ScatterConnectType.Spline;
series1.ScatterSplineTension = 0.2;
series1.Style.Symbol.Size = new Size(0, 0);

Please have a look at this sample and let me know if this helps you.

http://websamples.syncfusion.com/samples/Chart.Windows/F59697/main.htm


Regards,
Rajesh

Navaneeth Rajkumar
Replied On April 23, 2007 09:15 PM UTC

Issue Resolved.. thanks..
>Hi Tom,

Thanks for your detailed explanation.

The scatter chart type having special property for adjusting the spline tension. Please use the ScatterSpline chart and you can get the smooth curve by adjusting the ScatterSplineTension property. Please refer to the following code snippet.

[ C# ]
series1.ScatterConnectType = ScatterConnectType.Spline;
series1.ScatterSplineTension = 0.2;
series1.Style.Symbol.Size = new Size(0, 0);

Please have a look at this sample and let me know if this helps you.

http://websamples.syncfusion.com/samples/Chart.Windows/F59697/main.htm


Regards,
Rajesh

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

;