Get max and min Y-Value from C1FlexChart Y-Axis

Posted by: florian.weininger on 12 January 2021, 11:08 pm EST

  • Posted 12 January 2021, 11:08 pm EST

    Hello Support,

    I'm struggling with getting the min and max Y-Value from C1FlexChart.
    The values are automatic calculated by the Chart but when im trying to get this calculated values, like this way
    var minValue = this.flexChart.AxisY.Min
    , the result is always double.NaN .

    Is there a way to get these automatic calculated values?
  • Marked as Answer

    Replied 13 January 2021, 3:32 pm EST

    Hi Florian,

    I apologize for the inconvenience caused.

    Axis's Min/Max properties are basically used for explicitly setting the axis min/max. However, in order to get the axis min/max you can use IAxis's GetMin/GetMax method as follows:

    var minValue = ((IAxis)this.flexChart.AxisY).GetMin();
    var maxValue = ((IAxis)this.flexChart.AxisY).GetMax();

    Best Regards,
    Kartik
  • Replied 19 January 2021, 9:48 pm EST

    Thanks for your Answer. This way works fine.
Need extra support?

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

Learn More

Forum Channels