Merge pull request #517 from JelteF/off-by-one-bar

Fix off by one error when shown was not given
This commit is contained in:
Jelte Fennema 2014-10-25 17:42:14 +02:00
commit 77011bbae4

View File

@ -134,7 +134,7 @@ class Morris.Bar extends Morris.Grid
numBars = 1
else
numBars = 0
for i in [0..@options.ykeys.length]
for i in [0..@options.ykeys.length-1]
if @hasToShow(i)
numBars += 1