Skip to main content
100%

Fork of Loading CSS Hex Values from object

✓ Published0🌍 Public
PPascal Mausch
Last edited Jul 11, 2022
Created on May 31, 2022

This example visualizes the RGB hex values of CSS named colors as a full-circle pie chart, with each slice filled by the color it represents. The data is loaded from a remote CSV file using d3.csv, and the chart is rendered with React and SVG. The code uses d3.pie and d3.arc to compute the slice geometry, mapping each color’s hex value to the fill attribute of its corresponding path element.

AI-generated description

Uses D3 and react to render the CSS Hex Values.

MIT Licensed

Similar vizzes