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

radchart Y axis decimal points

2 Answers 52 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Duygu
Top achievements
Rank 1
Duygu asked on 22 Mar 2013, 05:10 AM
Hi ,
I have a radchart,

  <PlotArea>
                            <XAxis AutoScale="false">
                            </XAxis>
                            <YAxis AutoScale="false" MinValue="1" MaxValue="5" Step="0.2"     >
                            <AxisLabel><Appearance  Dimensions-Margins="5"></Appearance></AxisLabel>
                            </YAxis>
                        </PlotArea>

I don t want to show  "1,2","1,4".. values on y axis,  only "1","2","3"... But step valu must be 0,2. How can i do this?

2 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 26 Mar 2013, 09:08 AM
Hi,

Basically, such functionality is not supported out of the box. One option which you can try is manually hiding the items. Such an approach is demonstrated by the code snippet below:

void RadChart1_BeforeLayout(object sender, EventArgs e)
   {
       foreach (ChartAxisItem item in RadChart1.PlotArea.YAxis.Items)
       {
           if (item.Value.ToString().Contains(','))
               item.Visible = false;
       }
   }

I hope this gets you started properly.

Kind regards,
Yavor
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.
0
Duygu
Top achievements
Rank 1
answered on 25 Apr 2013, 12:19 PM
Thank you very much. it helps .
Tags
Chart (Obsolete)
Asked by
Duygu
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Duygu
Top achievements
Rank 1
Share this question
or