Skip to main content
100%

color_graph

✓ Published1🌍 Public
JJaya Durga V
Last edited Jan 27, 2022
Created on Jan 27, 2022
Forked from smiley_part_1

This example displays all named CSS colors as a radial pie chart, with each wedge filled by its corresponding RGB hex value. The visualization loads color data from a CSV file via `d3.csv` and uses React state to manage the data. The chart is rendered as an SVG using D3’s `pie()` layout and `arc()` generator, with the outer radius set to the full width of the viewport. Each slice is drawn as a path with its fill directly from the data’s hex column, creating a vibrant, full-circle spectrum of color names.

AI-generated description

CSS color gradient pie chart created with the React and D3

MIT Licensed

Similar vizzes