diff --git a/lib/morris.bar.coffee b/lib/morris.bar.coffee index 7fed9f0..66e8614 100644 --- a/lib/morris.bar.coffee +++ b/lib/morris.bar.coffee @@ -221,6 +221,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]}: