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. Image for the cookie policy date

SplineChart smooth curve

I am using a SplineSeries with the default SplineType of "natural". I am trying to make my chart look more smooth. I don't know if I selected the right series but the user does not need to see the exact point on the screen. This is what my graph looks like at the moment:


I would like a graph to look like this:


Essentially I am making it look smooth. Any suggestions on how to accomplish this? The thickness of the drawing or chart type?


5 Replies 1 reply marked as answer

YG Yuvaraj Gajaraj Syncfusion Team January 31, 2023 02:07 PM UTC

Hi Ivan,


We have tried to reproduce the reported issue that the spline series curve is not smooth when the spline series type is natural, but the issue is not reproduced at our end. The SplineSeries with the closest point and SplineType.natural get renders with a smooth curve without any sharp corners, we have shared the sample below for your reference.


Screenshot:



For more details, please refer to the following ug:

https://help.syncfusion.com/flutter/cartesian-charts/chart-types/spline-chart 


So, we kindly request you to try to replicate the reported issue in the below attached test sample and revert us so that it will help us assist you in a better way.


Regards,

Yuvaraj.


Attachment: f180239_880c9753.zip


IV Ivan February 1, 2023 05:03 AM UTC

Yuvaray,


I think you may have misunderstood my question, there are no issues with the widget itself. My question was is there a way to sort of "normalize" data points and make them "smooth-er", if I provide 20 different data points to find the closest points to make it almost like a perfect curve, with no changes up/down, but draw line that will represend "middle" of those. If the widget does not have that capability I will find a way to process my datapoints before showing them on a graph.


Ivan



NR Natrayan Ramalingam Syncfusion Team February 2, 2023 09:49 AM UTC

Hi Ivan,


Our spline series does not have the capability to meet your requirement. We suggest you ignore the closest data points from your actual data source in order to achieve the excepted output.


Regards,

Natrayan



Marked as answer

IV Ivan replied to Natrayan Ramalingam February 8, 2023 06:47 AM UTC

Thank you for your help!



LA Lavanya Anaimuthu Syncfusion Team February 9, 2023 06:02 AM UTC

Hi Ivan,


Most Welcome. Kindly get back to us if you have further queries. We are always happy to assist you.


Regards,

Lavanya A.


Loader.
Live Chat Icon For mobile
Up arrow icon