Skip to main content
100%

Create PI

✓ Published0🌍 Public
PPathan Khuvanejarkhan
Last edited Jan 28, 2023
Created on Jan 28, 2023
Forked from HTML Starter

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 description

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

See also React Starter.

MIT Licensed

Similar vizzes