Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > Chart > Problem when MaxValue of AxisY is not divisible by Step.

Not answered Problem when MaxValue of AxisY is not divisible by Step.

Feed from this thread
  • Yaroslav avatar

    Posted on Jan 26, 2012 (permalink)

    I have the following code:
    AxisY axisY = chart.DefaultView.ChartArea.AxisY;
     
    maxValue = 360000;
    step = 40000;
     
    // without this line it works
    maxValue *= 1.05;
     
    axisY.AutoRange = false;
    axisY.AddRange(0, maxValue, step);
     
    foreach (TickPoint tickPoint in axisY.TickPoints)
    {
    tickPoint.Label = (tickPoint.Value) + "some text";
    }

    Tick point label is not generated as expected when MaxValue of AxisY is not divisible by Step.

    Reply

  • Peshito Peshito admin's avatar

    Posted on Jan 31, 2012 (permalink)

    Hi,

    When the axis max value is not divisible by the step value the last axis label which is the max value as well, is not drown because this is the expected behavior. In case you would like to see the last axis label, you will have to set appropriate step value. You can find more information about the axes behavior here.

    Greetings,
    Peshito
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > Chart > Problem when MaxValue of AxisY is not divisible by Step.
Related resources for "Problem when MaxValue of AxisY is not divisible by Step."

Silverlight Chart Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]