Skip to main content
100%

Piechart

✓ Published0🌍 Public
Kkirankumari26guj@gmail.com
Last edited Mar 24, 2025
Created on Mar 24, 2025
Forked from Hello VizHub

A pie chart displays chocolate sales proportions by product category. The visualization uses D3.js version 7, loading data from a CSV file and mapping category values to colors with `d3.scaleOrdinal` and `d3.schemeSet2`. The `d3.pie()` and `d3.arc()` functions generate the chart geometry, rendering each segment as a filled SVG path with white strokes. A custom HTML legend, built with D3 selections, labels each category using the same color scale, while the page layout is styled through external CSS.

AI-generated description
MIT Licensed

Similar vizzes