mirror of
https://github.com/morrisjs/morris.js.git
synced 2024-11-10 21:36:34 +01:00
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:
commit
77011bbae4
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user