dc-js / dc.leaflet.js

DC charts using Leaflet maps
Apache License 2.0
52 stars 24 forks source link

fixes for categorical colors #4

Open gordonwoodhull opened 8 years ago

gordonwoodhull commented 8 years ago

KatiRG posted on gitter:

@gordonwoodhull I got dc.leafletChoroplethChart to work with a colorbrewer palette, and also with the default d3.scale.category20c() scale but in the correct order according to the spectrum in the documentation (https://github.com/mbostock/d3/wiki/Ordinal-Scales). Here is a gist: https://gist.github.com/KatiRG/87b95d8e3c1827fd0a72