ICE 7 - Pie Chart
✓ Published0🌍 Public
A pie chart visualizes the distribution of instruments sold, breaking down totals for Guitar, Bass, Drums, and Keyboard from a CSV dataset. The chart renders as an SVG using D3 v7’s `d3.pie` and `d3.arc` generators, with a color scale from `d3.schemeSet2`. A legend lists each instrument with its count, and the chart is accompanied by a title. Data is grouped and counted using `d3.group` and `d3.count`, with the visualization displayed in a React-compatible HTML page.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed