ICE 7 Pie Chart
✓ Published0🌍 Public
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 descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed