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

Filtering issues

2 Answers 43 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Dennis Perlot
Top achievements
Rank 1
Dennis Perlot asked on 12 Sep 2011, 06:24 PM

Hi Telerik Team,

I found two issues when filtering (please see the attached image) :

  • The value shown on the chart don't match the value it was supposed to plot. In our scenario, the RadGridView column "Total Amount" drives the values plotted in the chart. When plotting the value 185.466 it goes over the rounded value 185.47, why ? I think the bar should stop at the first 185.47 shown.

 

  • Why does the X axis starts with that value instead of zero ? When we aren't filtering, it starts with zero. We need it to always to start with zero.

Thanks for helping us.

Nuno


2 Answers, 1 is accepted

Sort by
0
Accepted
Nikolay
Telerik team
answered on 13 Sep 2011, 08:18 AM
Hi Dennis Perlot,

The first issue seems to be caused by the default LabelFormatBehavior, which is HumanReadable and displays rounded values, thus having 3 labels on your screenshot with a value of 185.47 K, however, they are not necessarily the same, for example the first one could be 185 465 ( rounded off to 185.47K), whereas the second one could be 185 467 ( again rounded off to 185.47K ), which is why the bar is between the two otherwise identical labels. You may see the exact values by setting the LabelFormatBehavior to None in the following way :
RadChart1.DefaultView.ChartArea.LabelFormatBehavior = LabelFormatBehavior.None;

As for the second issue, the axis would not be zero based for practical reasons and for better readability, however, you can always set it to zero based :
RadChart1.DefaultView.ChartArea.AxisY.IsZeroBased = true;

and/or set a manual axis range, that best suits your specific scenario.

Hope this helps. In case you continue encountering these issues, it would be very helpful for us if you're able to send us a small sample application ( opening a support ticket ), so that we can debug it locally and be able to provide further support.

Best wishes,
Nikolay
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
Dennis Perlot
Top achievements
Rank 1
answered on 13 Sep 2011, 02:58 PM
Hi Nikolay,

I understood your explanation. In our scenario we need the LabelFormatBehavior to be HumanReadable to make the values easier to read by our users. The down size is that can cause 3 or more labels with the same value. BUT, setting the AxisY and AxisX IsZeroBased property to true ended up doing the trick for us since the scale has now a wider range. The scale became is less granular.

Feel free to take a look at the attached printscreen.

Thanks for your help.

-Nuno
Tags
Chart
Asked by
Dennis Perlot
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Dennis Perlot
Top achievements
Rank 1
Share this question
or