Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 7 question 1

Public visualization

Viewing a saved revision (read-only)

bbf15bfeaeb14206b70723f702713274

Activity 7 question 1

0 stars1🌍 Public
JJayanth Reddy Sripathi
Last edited Nov 7, 2024
Created on Nov 7, 2024

This example shows a population pie chart for ten countries in 2019, using colored slices with percentage labels and a legend. Data is loaded from a CSV file via the `d3.csv` function. The visualization is built with React and rendered as SVG using D3 version 5 components, including `d3.pie` and `d3.arc` for generating the slices, and `d3.format` for percentage labels, while the chart is drawn inside a `<div>` element.

AI-generated description

A demonstration of how to start using D3 version 6.