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
|
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 New Issue
Block a user