Percentages in Graph

2 posts, 1 answers
  1. StevenDale
    StevenDale avatar
    100 posts
    Member since:
    Apr 2007

    Posted 22 Aug 2010 Link to this post

    I am using percentages in my graphs but the y-axis label as well as the item labels show 100% as 100.00% or 95% as 95.00%. Is there a way to make it show only whole numbers?


    Billy Jacobs
  2. Answer
    Sia avatar
    667 posts

    Posted 23 Aug 2010 Link to this post

    Hello Billy Jacobs,

    Please try the following approach and let me know whether it is appropriate for you:
    RadChart1.DefaultView.ChartArea.AxisY.MinValue = 0;
    RadChart1.DefaultView.ChartArea.AxisY.MaxValue = 1;
    RadChart1.DefaultView.ChartArea.AxisY.Step = 0.1;
    RadChart1.DefaultView.ChartArea.AxisY.DefaultLabelFormat = "#VAL{p0}";

    Thank you,
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft R3 2016 release webinar banner
Back to Top