Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

ICE 7

Public visualization

Viewing a saved revision (read-only)

2baa2d731c9442e6a0a9e58a13a9520c

ICE 7

0 stars0🌍 Public
Aankitgoudpoodhari07@gmail.com
Last edited Oct 27, 2025
Created on Oct 27, 2025
Forked from HTML Starter

This pie chart visualizes sales by category, displaying five segments for electronics, furniture, clothing, and toys. The chart uses D3.js v7 to load the sales.csv dataset, then applies `d3.pie()` and `d3.arc()` to compute slice geometries, with `d3.scaleOrdinal` and `d3.schemeTableau10` assigning colors. It renders as SVG with category labels positioned via `labelArc.centroid()` and includes a legend showing each category and its value. Hovering over a slice reveals a tooltip with the category name and numeric value.

AI-generated description