This is a migrated thread and some comments may be shown as answers.

RadCartesianChart not plotting zero

1 Answer 51 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Jay
Top achievements
Rank 1
Jay asked on 12 Apr 2018, 12:40 PM

We are using the RadCartesianChart in our WPF project.  We are experiencing an issue where the chart does not show zero.  Our range of numbers goes from 0 to 22,000 and back down to 0 but always ends with a zero.  The chart will plot the data correctly, but when the last value is a  single zero, it will not end at zero.  It does not always do this, but enough that it is causing a problem for our end users who need to see that zero plot point.  As a work around, we are adding zeros to the data set and that will resolve the problem.

As an example, if our values being plotted looks like this:

0,100,1000,2000,5000,12000,15000,15000,15000,15000,15000,15000,15000,7000,2500,0

The charts does not drop all the way down to zero.  But if we add zeros to the end of the dataset, like this....

0,100,1000,2000,5000,12000,15000,15000,15000,15000,15000,15000,15000,7000,2500,0,0,0

....the chart line will drop down to zero.

 

Is there a way to make the chart reflect the true values - or at least "snap" to the beginning and end values?

 

Thank you for your help!

 

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 15 Apr 2018, 07:33 PM
Hello Jay,

I am not sure what exactly happens. Can you please share your XAML definition of the chart and also a picture with the result?

Regards,
Martin Ivanov
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
ChartView
Asked by
Jay
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or