Merge pull request #543 from arlaneenalra/line-chart-label
Fix label color in line chart - Squash Commits in #542.
This commit is contained in:
commit
a7e1cdd142
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue