jQWidgets Forums

jQuery UI Widgets Forums Chart minValue auto

This topic contains 3 replies, has 2 voices, and was last updated by  Martin 3 years, 1 month ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • minValue auto #121611

    atomic
    Participant

    Hi,

    I am using jqx chart to render data I input in jqx grid. Grid data allows negative values also so I set

                valueAxis:
                {
                    minValue: 'auto',
                    maxValue: 'auto',
                    displayValueAxis: true,
                    description: "",
                    axisSize: 'auto',
                },

    Everything works fine if I have negative values in the grid. But if I have only positive values chart is rendered from minimal value, not from zero which is misleading.
    Is there a way to force grid to render from zero if there is only positive values, and also render negative values if user enters it.

    Thanks

    minValue auto #121612

    Martin
    Participant

    Hello atomic,

    You can try updating the minValue and refresh the chart depending on the data in it and the user’s input.

    Best Regards,
    Martin Yotov

    jQWidgets team
    https://www.jqwidgets.com

    minValue auto #121613

    atomic
    Participant

    hi Martin,
    Thank you for your reply.
    Well it is not that straightforward since I allowed copy/paste functionality of large amount of data (8760X50), parsing and checking min value would affect performance. Any other tip?
    Thanks

    minValue auto #121614

    Martin
    Participant

    Hello atomic,

    I have tested this Example with negative values and minValue and maxValue set to “auto”. It is working the way you need it. Negative values are displayed on the axis only if there are ones in the data. The axis values start from the minimum value in the data.

    Could you send an example of your case?

    Best Regards,
    Martin Yotov

    jQWidgets team
    https://www.jqwidgets.com

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

You must be logged in to reply to this topic.