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

chart y-axis alignment

1 Answer 29 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Palaniappan
Top achievements
Rank 1
Palaniappan asked on 04 Mar 2013, 02:46 PM

I am running into an issue with Y-axis scales in combination chart .I have 2 measures as 2 series items represented on Y axis with data ranging from 2 to 3 and x-axis has months, left the measures box field empty. The y-axis scale after the report is run is giving multiple values like 0,0,1,1,2,2,3,3..so on instead of 0,1,2,3,4.. I have tried changing the scale interval number under the properties but it's causing the data skewed

1 Answer, 1 is accepted

Sort by
0
Petar Kirov
Telerik team
answered on 07 Mar 2013, 02:32 PM
Hi Palaniappan,

Most probably the cause of the problem is that you have set a value format for the Y axis that trims the numbers after the decimal separator (rounds them to integers), such as F0. So the chart is displaying 
0, 0, 1, 1 instead of 0, 0.5, 1, 1.5. To change that you need to use the CustomFormat property of the axis, to something like "G" for example. You can also use the ValueFormat property, which gives you a set of predefined options, to choose from.
radChart1.PlotArea.XAxis.Appearance.CustomFormat = "G";
//or
radChart1.PlotArea.XAxis.Appearance.ValueFormat = ChartValueFormat.General;

I hope this helps. 

Regards,
Petar Kirov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Chart (Obsolete)
Asked by
Palaniappan
Top achievements
Rank 1
Answers by
Petar Kirov
Telerik team
Share this question
or