Values scaling ​​on the chart axis

Posted by: marcin.kozlowski on 19 October 2020, 12:04 am EST

  • Posted 19 October 2020, 12:04 am EST

    I manage to create chart like in attached image.



    Is there an option to adjust Y axis scale? I would like the values ​​on the Y axis to start from 14000.
  • Replied 19 October 2020, 11:11 pm EST

    Hi,

    You may use axes.primaryValue.max and axes.primaryValue.min property for the required functionality. Please refer to the following code snippet and let us know if you face any issues.

    var axes = chart.axes();
    //define the max/min value for primary value axes
    axes.primaryValue.max = 120;
    axes.primaryValue.min = 10;

    chart.axes(axes);


    API references:

    Axes: https://www.grapecity.com/spreadjs/docs/v13/online/SpreadJS~GC.Spread.Sheets.Charts.Chart~axes.html?highlight=axes%2C

    Regards
    Avinash
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels