🌍 Public
Viewing a saved revision (read-only)
d89d14fa13304b2da050c7d75a3b3a3f
Pie chart
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 descriptionA pie chart program.