Closed yanickrochon closed 6 years ago
I ran into this problem as well. From the d3 changelog, this feature has been removed. Instead, you can do something like this:
var fill = d3.scaleOrdinal(d3.schemeAccent);
See this for more options: https://github.com/d3/d3-scale-chromatic
Yes, the example was created in the days of D3 version 2. D3 version 4 onwards split everything into smaller modules. I removed the fill from the example to avoid any confusion.
In the example, there's this line :
I'm looking all over the place, but this function
category20
is nowhere to be found in the bower packages.