Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity_9-pie chart

Public visualization

Viewing a saved revision (read-only)

9e5fa517466343398ad9d2940a3d06c9

Activity_9-pie chart

0 stars0🌍 Public
SSiddhartha Alwala
Last edited Apr 21, 2024
Created on Apr 20, 2024
Forked from Hello VizHub

This pie chart visualizes Canadian immigrant data from 2013, showing the proportion of immigrants from each continent. The chart uses D3.js v6 to create an SVG pie layout with `d3.pie()` and `d3.arc()`, coloring each slice with a hue based on its index. Hovering over a slice displays a tooltip with the continent’s percentage of the total, calculated via `d3.sum()`. A legend accompanies the chart, listing each continent and its exact immigrant value. The data loads from a remote CSV file via `d3.csv()`.

AI-generated description