Yaxis maxvalue

Thread is closed for posting
2 posts, 0 answers
  1. Marko Gluhak
    Marko Gluhak avatar
    69 posts
    Member since:
    Apr 2006

    Posted 14 Dec 2008 Link to this post

    Hi,

    I'm trying to accomplish following:

    I have graphs that represents percentage. So max value of graph iss 100%. In case when I have graph that si 100% I want my chart to extend to 110 but I must not set that last label to true.

    I have setup this:

    grafikon.PlotArea.YAxis.AxisMode =

    ChartYAxisMode.Extended;

     

    grafikon.PlotArea.YAxis.AutoScale =

    false;

     

    grafikon.PlotArea.YAxis.MaxValue = 105;

    grafikon.PlotArea.YAxis.MinValue = 0;

    grafikon.PlotArea.YAxis.Step = 10;

    Basicly I wanted that chart can go only up to y value of 105 but when I set step parameter graph goes to 110 and writes label 110 on yaxis. That is confusing for my clients because they think they can have 110% of something.

  2. Vladimir Milev
    Admin
    Vladimir Milev avatar
    1061 posts

    Posted 16 Dec 2008 Link to this post

    Hi Marko Gluhak,

    Please use the PrePaint event of RadChart to iterate over the axis items and set the text of the last axis item to an empty string. This should override the label.

    Best wishes,
    Vladimir Milev
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top