You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add Choropleth and ChoroplethMap trace types
Add choropleth map support (addresses #408):
- `Choropleth<Loc, Z>` on the existing `geo` subplot, with a `LocationMode`
enum (ISO-3 / USA-states / country names / geojson-id), a dedicated
`choropleth::Marker`, selection support, z-bounds, and the shared
`ColorScale`/`ColorBar` machinery. `geojson` accepts a URL string or an
inline GeoJSON object.
- `ChoroplethMap<Loc, Z>`, the plotly.js 3.x `choroplethmap` trace on the
MapLibre `map` subplot (GeoJSON-only).
- New MapLibre `map` subplot via `LayoutMap` + `MapStyle` + `MapBounds`.
- `LayoutGeo` additions: `fitbounds` (`GeoFitBounds`), `resolution`
(`GeoResolution`, 1:110M/1:50M base-layer detail), and `bgcolor`.
- `PlotType::Choropleth`/`ChoroplethMap` variants, re-exports, serialization
tests, doctests, runnable `examples/maps` examples, and a Maps book recipe.
Attribute names/types follow the plotly.js v3.6.0 plot-schema.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
-[[#408](https://github.com/plotly/plotly.rs/issues/408)] Add `Choropleth` (geo subplot) and `ChoroplethMap` (MapLibre `map` subplot) trace types, with a `LocationMode` enum and a dedicated `choropleth::Marker`; add the MapLibre `map` subplot via `LayoutMap`/`MapStyle`/`MapBounds`
0 commit comments