chart y-axis alignment

Thread is closed for posting
2 posts, 0 answers
  1. Palaniappan
    Palaniappan avatar
    8 posts
    Member since:
    Jan 2013

    Posted 04 Mar 2013 Link to this post

    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, 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

  2. Petar Kirov
    Petar Kirov avatar
    425 posts

    Posted 07 Mar 2013 Link to this post

    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";
    radChart1.PlotArea.XAxis.Appearance.ValueFormat = ChartValueFormat.General;

    I hope this helps. 

    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.
Back to Top