Skip to main content
100%

Activity-7

✓ Published0🌍 Public
Aadapasaidivya99@gmail.com
Last edited Nov 6, 2024
Created on Nov 5, 2024
Forked from Hello VizHub

This example presents a pie chart that visualizes the distribution of cricket players by their home country, using data aggregated from top test cricket records. Built with D3 v5, the chart slices represent the player counts, with each section labeled and colored via a categorical scale. The visualization employs D3's `pie` layout, `arc` generator, and `scaleOrdinal` for color assignment, while a custom legend displays both country names and player totals. The SVG-based chart is rendered on a canvas, with a title and subtitle indicating the dataset's theme.

AI-generated description

This is a pie chart representing number of players from each country in top test records of cricket.

MIT Licensed

Similar vizzes