Skip to main content
Public

Share visualization

Loading preview…

Diamond 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

Diamond pie chart

1
Aamalli7433@gmail.com
Last edited Apr 1, 2025
Created on Apr 1, 2025

This pie chart visualizes the distribution of diamond shapes in a CSV dataset, showing the proportional count of each shape category. The chart is rendered as an SVG using D3.js v6, with slices generated by the `d3.pie` and `d3.arc` functions, colored with a categorical scale via `d3.scaleOrdinal`. Each slice is labeled with its shape name, and a separate legend with color swatches accompanies the chart. Data is aggregated using `d3.rollup` to count occurrences per shape.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed