Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 7_Question 1

Public visualization

Viewing a saved revision (read-only)

e1b65c24ff6349fb9015a313c26c21f0

Activity 7_Question 1

0 stars1🌍 Public
Ssairohithchada@gmail.com
Last edited Apr 9, 2025
Created on Apr 9, 2025
Forked from Hello VizHub

This pie chart visualizes the distribution of sales across product categories, with each slice labeled by category name and colored using the D3 category color scheme. Hovering over a slice displays a tooltip showing the category’s percentage of total sales, calculated from the summed values. The chart is built with SVG and uses `d3.pie`, `d3.arc`, and `d3.scaleOrdinal` to generate the arcs and colors, while legends are manually positioned to map categories. Data is loaded from a remote JSON file.

AI-generated description