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

Prevent RadChart from Inserting Intermediate Decimal Values on Small Series

1 Answer 61 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 09 May 2011, 11:34 AM
Hi,

I have a chart that can have small values, say 1 or 2, but it can go up to the hundreds as well. This is dynamic total data and there is no defined upper limit to this, but they are all integer. I've noticed that for these small values, the RadChart seems to insert some intermediate values into the series even if there are no such values in the DataTable datasource. Is there a way to prevent RadChart from doing this?

Attached is a sample screenshot of the intermediate values inserted. Only the value 2 is set in the datasource, we can live with the value "1" but none of those having decimal places. Any assistance on this would be greatly appreciated. Thanks!

1 Answer, 1 is accepted

Sort by
0
Gimmik
Top achievements
Rank 1
answered on 10 May 2011, 12:22 AM
He Kevin,

This should be fairly simple. Here are the settings to manually configure the X-Axis.

<PlotArea>
    <XAxis AutoScale="False" MaxValue="4" MinValue="1"
        Step="1.0">
    </XAxis>
</PlotArea>

I would use something like that to ensure that you don't get intermediate values. I assume you're trying to avoid fractional values. The X-axis needs to be linear, but you can probably use a few Scale Breaks if your data is very sparse. Scale breaks are only available for the Y-Axis, but you should be able to flip your chart. Here is the documentation on scale breaks:
http://www.telerik.com/help/aspnet-ajax/radchart-scale-breaks.html

Hope this helps!
-Gimmik
Tags
Chart (Obsolete)
Asked by
Kevin
Top achievements
Rank 1
Answers by
Gimmik
Top achievements
Rank 1
Share this question
or