jQuery UI Widgets Forums Chart minValue didn't work

This topic contains 7 replies, has 4 voices, and was last updated by  Peter Stoev 7 years, 11 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
  • minValue didn't work #83507

    mengl2
    Participant

    Hi,

    I have this demo link: http://jsfiddle.net/dR5PY/3/
    Basically my values are non-negative numbers, and I want to set the minValue to be 0. However, it showed -1 in yAxis. Could you look into it?

    Thanks!
    Meng

    minValue didn't work #83520

    ivailo
    Participant

    Hi mengl2,

    Please, set also maxValue and the result will be as you expected.

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com

    minValue didn't work #83548

    mengl2
    Participant

    Hi,

    That’s the problem. I can’t set maxValue because there is no maxValue for my dataset, they are just non-negative numbers. I read from your documentation and other demo links that I don’t necessarily need to give both min and max, so theoretically this should work. Please suggest another to fix this. Thanks!

    Meng

    minValue didn't work #83617

    ivailo
    Participant

    Hi mengl2,

    This behavior is occurred with chart, populated with 0 values only. Try with data source contained even only one positive number and the behavior will be as expected.
    If you uses only zero contained source – set maxValue as in previous example.

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com

    minValue didn't work #84891

    mengl2
    Participant

    Hi,

    I know it’s been a while since I started this thread, but our product has the need to support the case where the chart always shows positive range even when there are only 0 values. Do you consider to fix this in the near future? Could you provide a workaround for now?

    Thanks a lot!
    Meng

    minValue didn't work #84906

    admin
    Keymaster

    Just put maxValue: 5 in your Chart’s initialization.

    Chart example: http://jsfiddle.net/93ua94oe/

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

    minValue didn't work #84924

    mengl2
    Participant

    Hi,

    Again, as I mentioned earlier, I can’t set maxValue, because I don’t want to loose the chart’s dynamic scale functionality, and the maxValue is uncertain. To me, the chart should always take the minValue that users set no matter what the dataset’s values are. Please provide the workaround other than setting the maxValue, and let me know if you will fix this in the near future.

    Meng

    minValue didn't work #84926

    Peter Stoev
    Keymaster

    This approach can be used as an easy workaround until the issue is resolved.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

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

You must be logged in to reply to this topic.