Spline chart
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
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
SIGN IN To post a reply.
4 Replies
RR
Ramya R
Syncfusion Team
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.
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.
NR
Navaneeth Rajkumar
April 20, 2007 02:13 PM UTC
RC
Rajesh C
Syncfusion Team
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
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
NR
Navaneeth Rajkumar
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
>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
SIGN IN To post a reply.
- 4 Replies
- 3 Participants
-
NR Navaneeth Rajkumar
- Apr 19, 2007 09:14 PM UTC
- Apr 23, 2007 09:15 PM UTC