Skip to main content
100%

Ice7 Pie Chart

✓ Published0🌍 Public
Ddivyagunuguntla
Last edited Mar 29, 2022
Created on Mar 29, 2022

This visualization presents a pie chart of the top ten cricketers based on their total runs, using D3.js (v5) to render the SVG. Each slice's size corresponds to the player's run count, and a color-coded legend identifies each player by name and their runs, formatted with scientific notation. The code uses `d3.pie`, `d3.arc`, and `d3.scaleOrdinal` to create the chart, with data loaded from a JSON file and styled via external CSS. The chart is generated procedurally, positioning the pie at a fixed coordinate and appending legend entries in a separate group.

AI-generated description
MIT Licensed

Similar vizzes