jQuery UI Widgets › Forums › Chart › minValue didn't work
Tagged: Angular chart, chart, chart maxValue, chart minValue, javascript chart, jquery chart, minValue
This topic contains 7 replies, has 4 voices, and was last updated by Peter Stoev 9 years, 7 months ago.
-
AuthorminValue didn't work Posts
-
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!
MengHi mengl2,
Please, set also maxValue and the result will be as you expected.
Best Regards,
Ivailo IvanovjQWidgets Team
http://www.jqwidgets.comHi,
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
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 IvanovjQWidgets Team
http://www.jqwidgets.comHi,
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!
MengJust put maxValue: 5 in your Chart’s initialization.
Chart example: http://jsfiddle.net/93ua94oe/
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/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
This approach can be used as an easy workaround until the issue is resolved.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.