🌍 Public
Viewing a saved revision (read-only)
b314cdddb80846abac6a314cfec6940d
A7-Q1
This visualization displays a pie chart comparing the population of ten countries for the year 2000. Built with React and D3 v5, it renders an SVG with colored slices, percentage labels, and a legend. The code uses d3.pie, d3.arc, and d3.schemeCategory10 for the chart, while data is loaded via d3.csv and transformed in a custom useData hook.
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.