mirror of
https://github.com/morrisjs/morris.js.git
synced 2024-11-13 07:11:12 +01:00
Fix off by one error when shown was not given
This commit is contained in:
parent
2356f4977e
commit
5f1ea081a5
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue