Skip to main content
100%

Fork of Fork of Fork of ICE7 Pie Chart

✓ Published0🌍 Public
RReyden Harris
Last edited Mar 13, 2023
Created on Mar 13, 2023

This pie chart visualizes the total runs scored by ten top cricketers, with each slice’s arc length proportional to the player’s run count and a legend listing names alongside formatted values. The chart uses D3 v5’s `pie` and `arc` generators to compute slice geometries, `scaleOrdinal` with `schemeCategory10` for colors, and loads data from a local JSON file via `d3.json`. SVG paths and text elements render the chart and legend, while `d3.format` applies compact number formatting to displayed run totals.

AI-generated description
MIT Licensed

Similar vizzes