I am trying to change the colors of different lines of an nvd3 line chart here , but I cannot figure out how to do this. I would like to change the colors of the two 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)"]);
}
He worked for a scatterplot here . But the color does not change for the line chart. Any suggestions.
thank
source
share