maplibre-gl-pie-charts
A WebGL layer for mapping regional proportions as pie or donut charts
What does it do?
Developers prepare a map and geographic data, then add PieChartLayer to the map. At least 2 nonnegative numeric properties of each geographic feature become chart slices, with each slice's angle representing its share of that feature's total. Charts can use the same radius or change size in steps based on the sum of their values. They can also be set to a donut shape or filtered by slice proportion and radius step.
Key features
- Add a WebGL pie or donut chart layer to MapLibre GL JS or Mapbox GL JS maps
- Display numeric properties of geographic features as proportional chart slices
- Adjust chart radii in steps based on the sum of all values
- Set the size of the center hole in donut charts
- Filter charts on the client by slice proportion or radius step