Create PI
✓ Published0🌍 Public
This example visualizes a color palette as a pie chart, with each slice filled using the hex value from its corresponding data row. The chart is built with React and rendered as SVG, using D3’s `arc` to generate the pie slices and an inner radius to create a donut effect. Each slice’s angle is calculated manually by dividing the circle based on the data length. The data is fetched from a remote CSV file containing color keywords and their RGB hex values, then parsed with `d3.csvParse`. The visualization updates dynamically once the data loads.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed