jQuery UI Widgets Forums Chart Getting Min And Max

This topic contains 1 reply, has 2 voices, and was last updated by  Hristo 7 years, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Getting Min And Max #91643

    SumitRoy
    Participant

    Dear JQX,

    I have a query for the JQX Chart. If I have a chart whose maxValue and minValue for the value axis is not defined by me while creating the chart and JQX chart automatically calculate and applies it… is there anyway so that I can get the same auto calculated minValue and maxValue from the chart instance like:

    var chartInstance = $("#myJQXChart").jqxChart("getInstance");
    console.log(chartInstance["valueAxis"]["minValue"]);
    console.log(chartInstance["valueAxis"]["maxValue"]);

    please help me to get these values…

    thanks
    Sumit Roy

    Getting Min And Max #91662

    Hristo
    Participant

    Hello Sumit Roy,

    You could get those if you set it those before that moment.
    You could calculate the min and max value of your data and after this to set up your Chart. You could achieve this by beforeLoadComplete callback of the DataAdapter.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.