Skip to content

Commit

Permalink
Ensure choropleths use the correct column for computing the scale. Re…
Browse files Browse the repository at this point in the history
…solves #4221
  • Loading branch information
tlrobinson committed Jan 24, 2017
1 parent c7d1c5e commit 59158d9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 59158d9

Please sign in to comment.