Skip to content
Snippets Groups Projects
Unverified Commit 59158d93 authored by Tom Robinson's avatar Tom Robinson
Browse files

Ensure choropleths use the correct column for computing the scale. Resolves #4221

parent c7d1c5e0
Branches
Tags
No related merge requests found
......@@ -166,7 +166,7 @@ export default class ChoroplethMap extends Component {
valuesMap[getRowKey(row)] = (valuesMap[getRowKey(row)] || 0) + getRowValue(row);
}
var colorScale = d3.scale.quantize().domain(d3.extent(rows, d => d[1])).range(HEAT_MAP_COLORS);
var colorScale = d3.scale.quantize().domain(d3.extent(rows, getRowValue)).range(HEAT_MAP_COLORS);
let legendColors = HEAT_MAP_COLORS.slice();
let legendTitles = HEAT_MAP_COLORS.map((color, index) => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment