diff --git a/lib/morris.bar.coffee b/lib/morris.bar.coffee index 86fb32b..e578a26 100644 --- a/lib/morris.bar.coffee +++ b/lib/morris.bar.coffee @@ -171,6 +171,9 @@ class Morris.Bar extends Morris.Grid row = @data[index] content = "
#{row.label}
" for y, j in row.y + if @options.labels[j] is false + continue + content += """
#{@options.labels[j]}: diff --git a/lib/morris.line.coffee b/lib/morris.line.coffee index ea5e7dd..f88597d 100644 --- a/lib/morris.line.coffee +++ b/lib/morris.line.coffee @@ -101,6 +101,9 @@ class Morris.Line extends Morris.Grid row = @data[index] content = "
#{row.label}
" for y, j in row.y + if @options.labels[j] is false + continue + content += """
#{@options.labels[j]}: