Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Creating Pie chart

Public visualization

Creating Pie chart

0 stars0🌍 Public
Rrajamrit-singh
Last edited Jan 18, 2023
Created on Jan 18, 2023

A pie chart displays CSS named colors by dividing a circle into equal slices, each filled with the corresponding hex value from the loaded CSV dataset. Using React with D3 v7, the code fetches data via `d3.csv` and renders SVG paths with the `d3.pie` and `d3.arc` generators. Each slice represents one color row, with the fill set directly from the `RGB hex value` field.

AI-generated description

A program that loads in some data

Comments

Sign in to join the discussion.

MIT Licensed