Skip to main content
100%

Activity 7_Question 1

✓ Published1🌍 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
MIT Licensed

Similar vizzes