Skip to main content
100%

ICE 7 Pie Chart

✓ Published0🌍 Public
MMahendraGullinkala
Last edited Mar 30, 2023
Created on Mar 29, 2023
Forked from ICE 7 Pie Chart

This visualization shows the top 10 restaurants by daily Biryani sales as a pie chart, with a legend listing each hotel’s name and its corresponding units sold per day. The data is loaded from a CSV via `d3.csv` and sorted in descending order before rendering. The chart uses `d3.pie` to compute arc angles, `d3.arc` for segment geometry, `d3.scaleOrdinal` with `schemeCategory10` for colors, and SVG paths for drawing. Hovering over a segment logs its sales value to the console, while the legend is built with appended `rect` and `text` elements.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes