🌍 Public
Viewing a saved revision (read-only)
bf5e561b83d040e5ac992f5c0e16b312
ICE - 7 Pie chart
This visualization displays the top five countries by literacy rate as a pie chart, with each slice labeled with its percentage and a color-coded legend. The code loads data from a CSV file via `d3.csv`, computes the pie layout using `d3.pie`, and draws arcs with `d3.arc`. Colors are assigned via `d3.scaleOrdinal`, and the chart is rendered as SVG with text labels and legend elements.
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.