novus / nvd3

A reusable charting library written in d3.js
http://nvd3.org/
Other
7.22k stars 2.15k forks source link

Show maxMin is not working properly #2023

Open vishnu-sreenivasan opened 7 years ago

vishnu-sreenivasan commented 7 years ago

if the initial maximum value is zero then graph doesn't show maximum y axis label. screenshot-3

The graph will not show maximum y axis value even the data changed screenshot-4

liquidpele commented 7 years ago

If the max value is zero and you don't have negative values, then that's correct... zero is defined as the axis, it won't show a bar in that case. Or am I not understanding?

vishnu-sreenivasan commented 7 years ago

I am talking about the second image. Maximum value is not zero. But it doesn't show the maximum value in y-axis. First time i rendered graph with maximum value 0, there was no issue.I changed the data and given another set of data, then also the graph doesn't show maximum value.

bgth commented 7 years ago

hi @vishnu-sreenivasan.. as liquidpele mentioned, how do you think the graph should behave if you set it to show only 0 ? If you set the value of max as zero and pass it a value greater than zero, then it is data issue and not issue with the graph. Is it right?