Fork of Rendering Data with React & D3
✓ Published0🌍 Public
This visualization displays all CSS named colors as a radial pie chart, with each slice colored according to its corresponding hex value. The code uses React hooks (useState, useEffect) to fetch and store the data from a CSV file listing CSS color names, then applies D3’s pie and arc generators to compute the layout. The resulting SVG paths are rendered by React, with each color’s name shown as a tooltip via a title element. The chart uses an outer radius spanning the full width of the viewport.
AI-generated descriptionMIT Licensed