Search code examples
d3.jsdimple.js

How to change color of line in line chart using dimple.js?


This may have been asked before but I can't find the right solution. I want to change the default color of my line chart, e.g. 'Blue' color for the whole line, all values. Please advise.


Solution

  • You can use the assignColor method of the chart object.

    http://jsbin.com/vecoq/8/edit?js,output