Fork of Pie Chart
✓ Published0🌍 Public
A donut chart displays the top ten countries by crime index for 2020, using D3 v5 with React. The visualization renders SVG arcs via `d3.pie` and `d3.arc`, with colors from `scaleOrdinal` and `schemeCategory10`. Each slice is paired with a legend showing country names and crime index percentages, sorted descending from the CSV data loaded with `d3.csv`. Hovering over a slice logs the value to the console. The chart is styled with CSS and positioned within an SVG canvas.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed