SplineAreaSeries does not seem to render well

1 Answer 107 Views
Chart
Sébastien
Top achievements
Rank 2
Iron
Iron
Iron
Sébastien asked on 17 May 2023, 01:26 PM
Hi,

I have a chart that displays the temperature over a period of time.

I have 12 data:
- The first 8 is 20 degrees
- The last 4 is 20.25 degrees

I use a SplineAreaSeries to have a smoother rendering, but as you see in the chart, it gives a misrepresentation of the reality. The chart shows a temperature under 20C and over 20.25C.

Is it by design? Please see my "Expected.png" image.

Sébastien

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 19 May 2023, 10:28 AM

Hello Sébastien,

The chart is using a specific algorithm for calculating its additional spline points. As any other algorithm this one has its limitations and corner cases. Probably, at some point there are data points that are very close one to another and the spline calculations are creating a bigger spline gap between them. You can control this behavior by setting the SplineTension of the series.

 <telerikChart:SplineSeries SplineTension="0.4" /> 

Regards,
Martin Ivanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Chart
Asked by
Sébastien
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Martin Ivanov
Telerik team
Share this question
or