Gallery
Examples¶
Seven notebooks on open data, each running top to bottom. They live in the repository's examples/ folder and download their data on first run.
| Notebook | Shows | Data |
|---|---|---|
| 01 Sudan by state | print choropleth, dark 3D, circles over colour, two classifications side by side | 2008 census; geoBoundaries names |
| 02 Central Khartoum | roads by class and rank, street names, 3D buildings, streets over imagery | Overture Maps |
| 03 Earthquakes | circles by strength, colour by depth, labels, glow | USGS |
| 04 Food insecurity | IPC phase per state by the 20% rule, share in crisis | IPC via HDX |
| 05 US unemployment | county choropleth, classes around the national rate | BLS, Census |
| 06 Power plants | 35,000 plants by fuel and capacity; Sudan on imagery | WRI |
| 07 Jebel Marra in relief | contours as a topographic map, over imagery, by detail level | Mapzen; Sentinel-2 |
Power plants¶
FUELS = {"Coal": "zinc-400", "Oil": "amber-700", "Gas": "orange-400", "Nuclear": "fuchsia-400",
"Hydro": "sky-400", "Wind": "teal-300", "Solar": "yellow-300"}
kh.map(plants, "theme-midnight fill-[primary_fuel] size-[capacity_mw] size-max-16 stroke-transparent",
colors=FUELS, order=list(FUELS), legend={"title": "Main fuel"}, title="Power plants by fuel")

