Open enjalot opened 8 years ago
Start here:
a) Try coloring the countries by their population using Leaflet's style option. b) Add mouse interaction that changes the outline of a country when you mouse over it.
Resources: Leaflet Choropleth Bostock Choropleth
An example choropleth using d3.max and d3.scale.threshold
d3.max
d3.scale.threshold
Extended example with simple mouse interaction
Using a linear color scale: http://blockbuilder.org/enjalot/ce1df58ab6680177df71255fc4d5e9db
Start here:![](https://gist.githubusercontent.com/enjalot/14d410e0a52909684bc020dccd08c591/raw/15ca7122e46cedbfb1f465ccda882d5c3ac06650/thumbnail.png)
a) Try coloring the countries by their population using Leaflet's style option.
b) Add mouse interaction that changes the outline of a country when you mouse over it.
Resources: Leaflet Choropleth Bostock Choropleth