assignment -2(a)
✓ Published1🌍 Public
This visualization shows the market share percentages of major shoe brands in a pie chart, with each slice labeled by its percentage and accompanied by a color-coded legend listing the brand names on the right. The chart is rendered using D3 v5’s `pie`, `arc`, and `scaleOrdinal` APIs, with data loaded from a CSV file via `d3.csv`. The SVG canvas positions the pie chart on the left and the legend on the right, using `arcGenerator.centroid` to place the percentage labels within each slice.
AI-generated descriptionMIT Licensed