Scientific Data Visualisation
✓ Published0🌍 Public
A pie chart displays the top 10 U.S. states by heart stroke deaths in 2022, with each slice labeled with the death count in thousands and a corresponding color-coded legend listing state names and values. The visualization uses D3.js v5, fetching CSV data from a GitHub gist via `d3.csv` and rendering with SVG. It applies `d3.pie` for data segmentation, `d3.arc` to generate slice paths, and `scaleOrdinal` for color mapping. Text labels and legend elements are positioned manually using D3 selections and transforms.
AI-generated descriptionMIT Licensed