Skip to main content
100%

Pie chart

✓ Published0🌍 Public
NNikithakatta30
Last edited May 7, 2023
Created on May 7, 2023
Forked from HTML Starter

This visualization is a pie chart that displays the distribution of CSS color names, with each slice colored according to its corresponding RGB hex value from the source data. The chart is rendered as an SVG within a React application, using D3.js v5 for data loading and pie chart geometry. The code fetches color data from a GitHub-hosted CSV file via `d3.csv`, computes the pie slices with `d3.pie`, and draws them using `d3.arc` with an outer radius of half the chart height. Each slice is a `<path>` element filled with the exact hex color it represents.

AI-generated description

A pie chart program.

MIT Licensed

Similar vizzes