Skip to main content
Public

Share visualization

Loading preview…

ICE-7 Pie chart SKM

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

ICE-7 Pie chart SKM

0
Mmedurisk7@gmail.com
Last edited Mar 27, 2024
Created on Mar 27, 2024

A pie chart displays the number of test cricket players per country from a CSV dataset, using rounded labels for player counts and a legend with color-coded entries. The chart is rendered with D3 v5, using `d3.pie` and `d3.arc` to generate the slices and `d3.scaleOrdinal` for colors. Data is fetched asynchronously via `d3.csv` and aggregated client-side by country. Labels are positioned using the arc centroid, and the SVG output includes a fixed set of ten distinct section colors.

AI-generated description

This is my pie chart of number of players from each country in top test records

Comments

Sign in to join the discussion.

MIT Licensed