🌍 Public
Viewing a saved revision (read-only)
670d97ae3a7b4622a357cf58ca87c7f6
T9
A donut chart displays the top 20 highest individual runs scored in cricket, with each slice representing a player and colored by a categorical palette. The chart uses D3’s `pie`, `arc`, and `scaleOrdinal` APIs to generate and style slices, while a legend identifies each player. Data is fetched from a CSV URL and parsed with `d3.csv`, sorted by runs, and rendered as an SVG. Hovering over a slice dims it and shows a tooltip with the player’s name and run count.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.