Skip to main content
Public

Share visualization

Loading preview…

Fork of Fork of Fork of ICE7 Pie Chart

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

Fork of Fork of Fork of ICE7 Pie Chart

0 stars0Public
Bbhargavarathod
Last edited Mar 28, 2022
Created on Mar 28, 2022

This pie chart visualizes the runs scored by ten top cricketers, showing the proportional contribution of each player's total. The visualization loads data from a JSON file using `d3.json`, then uses `d3.pie` and `d3.arc` to generate the chart segments, which are rendered as SVG paths. A `d3.scaleOrdinal` with `d3.schemeCategory10` sets the color palette, while a custom legend built with appended SVG `rect` and `text` elements lists each player's name and run total. The code uses D3 v5.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed