How to customize color in pie chart of NVD3
I am trying to use NVD3 http://nvd3.org/livecode/#codemirrorNav a pie chart. But i want to change the default color. How do i change the color. i am not able to do it. To use your own colours you will have to override the existing colours, I prefer not to tinker around with the original code. So this is what I did. var myColors = ["#1f77b4", "#ff7f0e", "#2ca02c", "#d62728", "#9467bd", "#8c564b", "#e377c2", "#7f7f7f", "#bcbd22", "#17becf"]; d3.scale.myColors = function() { return d3.scale.ordinal().range(myColors); }; nv.addGraph(function() { var chart = nv.models.pieChart() .x(function(d) {