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 Reply
  • 53790
    Verified Answer
    posted in reply to henry

     

    Hi,

    I used our previous sample to illustrate our scenario with my customer settings. The code that I used is:

    AxisItem axis1 = new AxisItem();

    axis1.Extent = 20;

    axis1.DataType = AxisDataType.Numeric;

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

    axis1.OrientationType = AxisNumber.Y_Axis;

     

    axis1.RangeType = AxisRangeType.Custom;

    axis1.RangeMin = -10;

    axis1.RangeMax = 100;

    axis1.TickmarkInterval = 20;

    axis1.TickmarkStyle = AxisTickStyle.DataInterval;

    area.Axes.Add(axis1);

    Please take a look at the attached sample  and screenshot for more details and let me know if you have any questions.

    Regards

     

Children