Skip to main content
100%

D3 Color pie

✓ Published1🌍 Public
Ttim10133222
Last edited Jan 3, 2023
Created on Jan 2, 2023
Forked from HTML Starter

This example visualizes the 148 named CSS colors as a single pie chart, where each slice represents one color and is filled with that color's RGB hex value. The chart is rendered using React and D3 v5, with data loaded from a CSV file hosted on GitHub. The pie layout is computed with `d3.pie()` using a constant value of 1 per row, and each slice is drawn as an SVG path via `d3.arc()`, centered within a predefined 960×480 viewport.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes