radchart Y axis decimal points

Thread is closed for posting
3 posts, 0 answers
  1. Duygu
    Duygu avatar
    14 posts
    Member since:
    Sep 2012

    Posted 22 Mar 2013 Link to this post

    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. Yavor
    Admin
    Yavor avatar
    11 posts

    Posted 26 Mar 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Duygu
    Duygu avatar
    14 posts
    Member since:
    Sep 2012

    Posted 25 Apr 2013 Link to this post

    Thank you very much. it helps .
Back to Top