🌍 Public
Viewing a saved revision (read-only)
f811a17ff71242369a464f81b1750f10
D3 Color pie
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 descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.