Skip to main content
100%

Pie_Chart_Question1

✓ Published0🌍 Public
Kkanakalakshmi.murikipudi20@gmail.com
Last edited Jul 14, 2024
Created on Jul 10, 2024
Forked from Hello VizHub

This visualization displays annual sales distribution for an Indian restaurant as a pie chart, with each slice representing a year’s total sales and labeled with the corresponding sales amount. A legend on the right maps each year to its color. The chart is built using D3 v6, fetching CSV data via `d3.csv`, aggregating sales with `d3.rollups` and `d3.sum`, and generating arcs with `d3.arc` and `d3.pie`. Colors are assigned using a `scaleOrdinal`, and all elements are rendered as SVG.

AI-generated description
MIT Licensed

Similar vizzes