Fork of Loading data in D3
✓ Published1🌍 Public
This example demonstrates a React-based data visualization that loads a CSV file of named CSS colors and renders each color as an arc segment in a partial donut chart using SVG paths. The code fetches the external CSV file with d3.csv, then maps each row to a path element using the d3.arc generator with a fixed outer radius and angle range. The fill color for each path is taken directly from the CSV’s “RGB hex value” column, showing the complete dataset without additional aggregation.
AI-generated descriptionA program that uploads & parse a csv for you (using this as base) --> Using D3 & React to continue
MIT Licensed