Merge pull request #543 from arlaneenalra/line-chart-label

Fix label color in line chart - Squash Commits in #542.
This commit is contained in:
Jelte Fennema 2015-01-09 11:32:39 +01:00
commit a7e1cdd142
1 changed files with 3 additions and 3 deletions

View File

@ -350,10 +350,10 @@ class Morris.Line extends Morris.Grid
@options.lineColors.call(@, row, sidx, type)
else if type is 'point'
@options.pointFillColors[sidx % @options.pointFillColors.length] || @options.lineColors[sidx % @options.lineColors.length]
else if type is 'line'
@options.lineColors[sidx % @options.lineColors.length]
else
else if type is 'trendLine'
@options.trendLineColors[sidx % @options.trendLineColors.length]
else
@options.lineColors[sidx % @options.lineColors.length]
drawLinePath: (path, lineColor, lineIndex) ->
@raphael.path(path)