Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Diamond pie chart

Public visualization

Diamond pie chart

0 stars1🌍 Public
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