Skip to content

Commit

Permalink
fix: msd method
Browse files Browse the repository at this point in the history
  • Loading branch information
neocarto committed Mar 14, 2022
1 parent 56fb3cf commit bebf26d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/helpers/chorotypo.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ export function chorotypo(features, input){
if (method == "q6") {
nbreaks = 6;
}



if (breaks == null) {
breaks = stat.breaks({
values: features.map((d) => +d.properties[values]),
Expand All @@ -40,7 +43,7 @@ export function chorotypo(features, input){
}

if (colors == null) {
colors = d3[`scheme${pal}`][nbreaks];
colors = d3[`scheme${pal}`][breaks.length - 1];
}

let b = [...breaks];
Expand Down

0 comments on commit bebf26d

Please sign in to comment.