Activity7.1.1
✓ Published0🌍 Public
This example shows a pie chart of death rates from air pollution for the top 15 entities, with each slice labeled by entity name and percentage contribution. The visualization aggregates data from a CSV file, sorts it by total deaths, and renders an SVG pie chart with a legend. It uses d3.csv for data loading, d3.pie and d3.arc for chart generation, d3.scaleOrdinal for color mapping, and d3.format for value labeling, with the chart centered in a fixed-width SVG.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed