Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Assignment2_Q1_PieChart_Harini

Public visualization

Viewing a saved revision (read-only)

4b95cc4d81dd496bacdf4f7fb5f4a7ac

Assignment2_Q1_PieChart_Harini

0 stars0🌍 Public
Kkamarthyharini24@gmail.com
Last edited Apr 12, 2024
Created on Apr 8, 2024
Forked from Hello VizHub

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 description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.