Fork of activitty7.1question1
✓ Published0🌍 Public
This pie chart shows the distribution of clothing sizes from a CSV dataset loaded from a GitHub gist. The code uses d3.csv to fetch the data, counts size occurrences, and renders a categorical pie with d3.pie, d3.arc, and d3.scaleOrdinal with schemeCategory10 colors. Labels appear at each arc’s centroid, and an HTML legend is built below the SVG using D3 selections. The visualization renders in SVG with a 600x600 viewport.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed