Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

d3_firsttask

Public visualization

d3_firsttask

0 stars0🌍 Public
AAman Shrivastava
Last edited Jan 31, 2024
Created on Jan 31, 2024
Forked from React Starter

This example visualizes a dataset of CSS named colors as a pie chart, where each slice represents a color and is filled with its corresponding RGB hex value. The code uses React with hooks to asynchronously load CSV data from a gist via `d3.csv`, then builds the chart using `d3.pie` and `d3.arc` in an SVG. Each slice is rendered as a path with equal value weighting, and the entire pie is centered within a fixed 960×500 viewport.

AI-generated description

React Starter code.

Comments

Sign in to join the discussion.

MIT Licensed