Skip to content

Instantly share code, notes, and snippets.

@KatiRG
KatiRG / my-dc.leaflet.js
Created September 22, 2015 14:49
Modification to dc.leaflet.js to a) plot colorscale in choropleth in the right order and b) to accept colorbrewer.js scales
dc.leafletChoroplethChart = function(parent, chartGroup) {
var _chart = dc.colorChart(dc.leafletChart({}));
var _geojsonLayer = false;
var _dataMap = [];
var _geojson = false;
var _renderPopup = true;
var _brushOn = true;
var _featureOptions = {
'fillColor':'black',