Skip to main content
100%

Task-9

✓ Published2🌍 Public
AArungopal Andalam
Last edited Apr 28, 2024
Created on Apr 26, 2024
Forked from bar2

This visualization shows the top 10 store areas by sales as a pie chart, with each slice labeled by its store area code and corresponding sales value, alongside a legend listing all areas. The code loads a CSV dataset from GitHub, sorts and filters it, then uses d3.pie() and d3.arc() to generate the chart within an SVG canvas. A d3.scaleOrdinal assigns distinct colors to slices, and custom text elements are positioned using arc.centroid(). The legend is built manually with SVG rects and text elements, and axis-like labels for "Store Area" and "Sales" are added as decorative text.

AI-generated description
MIT Licensed

Similar vizzes