mirror of
https://github.com/morrisjs/morris.js.git
synced 2024-11-14 07:41:11 +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
|
numBars = 1
|
||||||
else
|
else
|
||||||
numBars = 0
|
numBars = 0
|
||||||
for i in [0..@options.ykeys.length]
|
for i in [0..@options.ykeys.length-1]
|
||||||
if @hasToShow(i)
|
if @hasToShow(i)
|
||||||
numBars += 1
|
numBars += 1
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue