Open mcmanuss8 opened 10 years ago
Updated with another, different but maybe related problem.
I took a stab at this which seemed to solve the problem. Short version is when range is set to 0 or 1, bad things happen. I don't have an exhaustive test suite to check the change against though.
Here's the change: https://github.com/mcmanuss8/jquery.sparkline/commit/ea51eb0b041adeb78352ff7612981906310b9663#diff-25d902c24283ab8cfbac54dfa101ad31
If you setup a stacked bar graph with every value being the same, it renders incorrectly...
Example: http://jsfiddle.net/ehCPZ/1/