Skip to main content
100%

Fork of Pie Chart

✓ Published0🌍 Public
Bbhanuprasadk19
Last edited Mar 26, 2023
Created on Mar 26, 2023
Forked from Pie Chart

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 description

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

See also React Starter.

MIT Licensed

Similar vizzes