Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Pie Chart

Public visualization

Viewing a saved revision (read-only)

9467cd67f4d24fa8963696f4f4186ba7

Pie Chart

0 stars0🌍 Public
AAditya Khandelwal
Last edited Apr 29, 2021
Created on Apr 29, 2021

This pie chart visualizes task completion data loaded from a CSV file, with each slice representing a data row. The chart uses React state to manage the asynchronous data fetch and renders SVG paths via D3’s arc generator. The pie is centered on a 960×500 canvas, with each path drawn from the center outward using fixed inner and outer radii, and equal angular spans derived from the data length.

AI-generated description

A program that loads in some data about CSS named colors using D3 utilities, and uses React state to keep track of the data.