I am trying to change the colors of different lines of the nvd3 line chart here but am unable to understand how to do so. I would like to change the colors of the 2 lines in the example to green and cyan. I tried
nv.addGraph(function() {
var chart = nv.models.lineChart()
.useInteractiveGuideline(true)
.color(["rgb(0,255,0)","rgb(255,165,0)"]);
}
It worked for scatter chart here. But the color does not change for line chart. Any suggestions.
Thanks