Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Pie Chart ICE-7

Public visualization

Viewing a saved revision (read-only)

6543b5b1656242a5b4298d699a44ea12

Fork of Pie Chart ICE-7

0 stars0🌍 Public
AAnanyaSamala
Last edited Jul 2, 2022
Created on Jul 1, 2022
Forked from Pie Chart ICE-7

This example visualizes monthly expenditures from a CSV file as a pie chart. The chart displays categories as colored slices, with each slice labeled by its associated data value, and includes a legend that maps the colors to their numeric values. The visualization is built using D3 version 5, specifically leveraging `d3.pie`, `d3.arc`, and `d3.scaleOrdinal` for the pie geometry, arc paths, and color mapping. Data is fetched asynchronously via `d3.csv` from a GitHub gist URL, and the SVG canvas is rendered with a fixed width and height.

AI-generated description

A demonstration of how to start using D3 version 6.