d3 Dispatch V4
✓ Published1🌍 Public
This example demonstrates linked selections across a bar chart and a pie chart, using a drop-down menu to choose a state. It shows how the D3 `dispatch` module (V4) coordinates custom events like `statechange` across separate visual components. The bar chart uses `d3.scaleLinear` and `d3.axisLeft` to display total state population, while the pie chart uses `d3.pie`, `d3.arc`, and `transition.attrTween` for animated arcing by age group. Data comes from a CSV of US census age demographics, loaded with `d3.csv` and processed via `d3.map`.
AI-generated descriptionDispatching Events https://bl.ocks.org/mbostock/5872848
MIT Licensed