Skip to main content
100%

Fork of Rendering CSS Named Colors - Arc (Using pie)

✓ Published1🌍 Public
Ppranav-vis
Last edited Sep 5, 2021
Created on Sep 5, 2021

This example visualizes all 148 CSS named colors as a pie chart, with each slice filled using its corresponding RGB hex value from a CSV dataset provided by MDN. The React application loads the data via d3.csv, then uses d3.pie to compute the arc segments and d3.arc to generate the SVG path geometries for each slice. The resulting chart is rendered as an SVG within a 960×500 canvas, centered on the display.

AI-generated description

Rendering CSS named colors from MDN.

MIT Licensed

Similar vizzes