Skip to content
Snippets Groups Projects
Commit d9090808 authored by Tom Robinson's avatar Tom Robinson Committed by GitHub
Browse files

Merge pull request #4222 from metabase/fix-choropleth-scale

Ensure choropleths use the correct column for computing the scale
parents 4218653a 59158d93
No related branches found
No related tags found
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.
Finish editing this message first!
Please register or to comment