🌍 Public
Viewing a saved revision (read-only)
4b95cc4d81dd496bacdf4f7fb5f4a7ac
Assignment2_Q1_PieChart_Harini
This pie chart displays the distribution of immigrants to Canada by continent in 2013, with each slice colored and accompanied by a legend showing percentages. It uses D3 v5 to load CSV data from a GitHub repository, aggregate values by continent with `d3.nest` and `d3.sum`, and render the visualization as SVG. Interactive tooltips appear on mouseover via `d3.arc` and transition effects, while the chart animates using D3’s selection and data-binding methods.
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.