Skip to main content
100%

Leaflet with D3 popups

✓ Published0🌍 Public
Aandrew-reid
Last edited May 8, 2018
Created on May 8, 2018

A map of London displays two polygon regions, each opening a popup containing an animated bar chart built with D3. The charts summarize monthly data—such as swan bite injuries—using `d3.scaleLinear` and `d3.scaleBand` axes, with bars transitioning from zero height over one second. The example combines Leaflet’s `L.geoJSON` layer and `bindPopup` with a D3-created SVG, returning the popup content via a custom `chart` function that generates the visualization on demand.

AI-generated description

Similar vizzes