We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e94f9ec + 0b99e5c commit 4c57438Copy full SHA for 4c57438
src/worldmap.js
@@ -48,7 +48,7 @@ export default class WorldMap {
48
'< ' + thresholds[0] + '<br>';
49
for (let index = 0; index < thresholds.length; index += 1) {
50
legendHtml +=
51
- '<i style="background:' + this.getColor(thresholds[index] + 1) + '"></i> ' +
+ '<i style="background:' + this.ctrl.panel.colors[index+1] + '"></i> ' +
52
thresholds[index] + (thresholds[index + 1] ? '–' + thresholds[index + 1] + '<br>' : '+');
53
}
54
this.legend._div.innerHTML = legendHtml;
0 commit comments