diff --git a/packages/superset-ui-legacy-plugin-chart-world-map/src/WorldMap.js b/packages/superset-ui-legacy-plugin-chart-world-map/src/WorldMap.js index 3546218dc..14043860c 100644 --- a/packages/superset-ui-legacy-plugin-chart-world-map/src/WorldMap.js +++ b/packages/superset-ui-legacy-plugin-chart-world-map/src/WorldMap.js @@ -61,10 +61,11 @@ function WorldMap(element, props) { .domain([extRadius[0], extRadius[1]]) .range([1, maxBubbleSize]); + // color gradient based on http://colorbrewer2.org/#type=sequential&scheme=Greens&n=9 const colorScale = d3.scale .linear() .domain([ext[0], ext[1]]) - .range(['#FFF', 'black']); + .range(['#c7e9c0', '#00441b']); const processedData = filteredData.map(d => ({ ...d, @@ -81,15 +82,15 @@ function WorldMap(element, props) { element, data: processedData, fills: { - defaultFill: '#ddd', + defaultFill: '#eee', }, geographyConfig: { popupOnHover: true, highlightOnHover: true, borderWidth: 1, - borderColor: '#fff', - highlightBorderColor: '#fff', - highlightFillColor: '#005a63', + borderColor: '#feffff', + highlightBorderColor: '#feffff', + highlightFillColor: '#00749A', highlightBorderWidth: 1, popupTemplate: (geo, d) => `