🌍 Public
Viewing a saved revision (read-only)
c93adf028a80449fb71bdec4e5f0868a
task 9 Question 1
This visualization displays estimated homicide counts for 10 countries in 1979 as a pie chart with a color-coded legend. Each slice is labeled with its value in thousands. The chart uses D3 v5’s `pie`, `arc`, and `scaleOrdinal` APIs to generate the pie geometry and assign colors. Data is fetched from a remote CSV file, numerically parsed, and the top 10 rows are rendered. The SVG output includes clickable legend entries with state names and corresponding values.
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.