53 choropleth
Uncomment the following line to install leafmap if needed.
In [1]:
Copied!
# !pip install leafmap
# !pip install leafmap
In [2]:
Copied!
import leafmap
import leafmap
In [3]:
Copied!
data = leafmap.examples.datasets.countries_geojson
data = leafmap.examples.datasets.countries_geojson
Available classification schemes:
- BoxPlot
- EqualInterval
- FisherJenks
- FisherJenksSampled
- HeadTailBreaks
- JenksCaspall
- JenksCaspallForced
- JenksCaspallSampled
- MaxP
- MaximumBreaks
- NaturalBreaks
- Quantiles
- Percentiles
- StdMean
- UserDefined
In [4]:
Copied!
m = leafmap.Map()
m.add_data(
data, column="POP_EST", scheme="Quantiles", cmap="Blues", legend_title="Population"
)
m
m = leafmap.Map()
m.add_data(
data, column="POP_EST", scheme="Quantiles", cmap="Blues", legend_title="Population"
)
m
Out[4]: