0

I want to change the default color of multiBarAndStack. i try to use this code but there is no change please someone help me, this is the code that i used:

d3.selectAll("nv-bar positive")
        .style("fill", function(d, i){
            return d.y > 50 ? "red":"blue";
        });
Kais Dkhili
  • 399
  • 1
  • 5
  • 18
  • 2
    try this: `var chart = nv.models.multiBarChart(); chart.color(['red', 'blue']);` – FernOfTheAndes Apr 30 '15 at 21:31
  • What is multiBarAndStack? I don't see it in [the examples](http://nvd3.org/examples/) or in [the source](https://github.com/novus/nvd3/tree/master/src/models). – Lucas May 06 '15 at 01:23

0 Answers0