Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1300
Yaxis scale with proper number
posted

Hi ,

When I plot my graph I have on the Yaxis numbers corresponding to the point's value( like -4.5 , -2.4, -1.2 .........). What I want is to have usual number with a step of 0.5 for example (-5 to 2).

How I can do that ?

Parents
No Data
Reply
  • 53790
    posted

    Hi,

    Maybe one possible approach could be if your are using Range properties. For example:

    AxisItem axisY = new AxisItem();

    axisY.DataType = AxisDataType.Numeric;

    axisY.OrientationType = AxisNumber.Y_Axis;

    axisY.Extent = 20;

    axisY.RangeType = AxisRangeType.Custom;

    axisY.RangeMin = -5;

    axisY.RangeMax = 2;

    axisY.Labels.ItemFormatString = "<DATA_VALUE:##.##>";

    axisY.LineColor = Color.Blue;

    area.Axes.Add(axisY);

    Let me know if you have any questions.

Children