From 5f1ea081a5e9ca31134772a115edbcece11f15e0 Mon Sep 17 00:00:00 2001 From: Jelte Fennema Date: Sat, 25 Oct 2014 17:40:54 +0200 Subject: [PATCH] Fix off by one error when shown was not given --- lib/morris.bar.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/morris.bar.coffee b/lib/morris.bar.coffee index 4c31297..f289c16 100644 --- a/lib/morris.bar.coffee +++ b/lib/morris.bar.coffee @@ -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