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

Unwanted Negative Values shown in Spline Chart

Thread ID:





121306 Nov 30,2015 06:43 AM UTC Dec 4,2017 12:52 PM UTC Xamarin.iOS 3
Tags: SfChart
Asked On November 30, 2015 06:43 AM UTC

Hi ,

I am facing problem with spline graph , it shows the values in negative also but the data list does not contains any negative value , for more clarification , i attached the sample image also with this thread,

And the DataSet i passed to the chart is
AddDataPointsForChart("Sun", 0);
AddDataPointsForChart("Mon", 400);
AddDataPointsForChart("Tue", 200);
AddDataPointsForChart("Wed", 0);
AddDataPointsForChart("Thur", 100);
AddDataPointsForChart("Fri", 0);
AddDataPointsForChart("Sat", 0);


Attachment: SplineChatIssue_96db47ec.rar

Manivannan Elangovan [Syncfusion]
Replied On December 1, 2015 11:04 AM UTC

Hi Lakhwinder,

We have analyzed your reported query. This is the default behavior and not an issue. SplineAreaSeries will be rendering with given data points and few control points, which are used to draw the spline curve. These control points are calculated based on the given datapoints. Since, the axis scale range is calculated with control points too, the range has been extended to negative.

Control points are not required for the AreaSeries. So, the axis scale range is calculated from the give data points alone. Please refer to the screenshot for your reference.

Screenshot: Screenshot

Manivannan E

wesley sandro favarin
Replied On December 1, 2017 04:45 PM UTC

Hello, in my case, all values coming from my database with -> "0"
the chart displays negative values and "0" is not a negative value, how do I fix this?

Divya Venkatesan [Syncfusion]
Replied On December 4, 2017 12:52 PM UTC

Hi Lakhwinder,

This issue is not reproduced with the Natural spline type. Could you please let us know the spline type you are using in your which will be helpful for us on providing further assistance on this. Also, we have attached the sample which we have used to reproduced this incident.

Sample: http://www.syncfusion.com/downloads/support/forum/121306/ze/ChartSample53211116

Divya Venkatesan


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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