Skip to main content
Public

Share visualization

Loading preview…

ICE 7 - 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

ICE 7 - Pie Chart

0
BBaswa Sathvika Reddy
Last edited Mar 27, 2022
Created on Mar 27, 2022
Forked from HTML Starter

This pie chart displays crime rates across ten U.S. states, with each slice labeled by state name and accompanied by a legend showing the corresponding count. Built with D3.js v3, the visualization uses `d3.layout.pie` to compute arc segments, `d3.svg.arc` for rendering the donut shape, and `d3.scale.category20` for slice colors. State names appear as text labels positioned via `arc.centroid`, while a separate legend group lists each state with its count. The chart is rendered as SVG, with styling applied through HTML elements.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed