Task 9 Question 1
✓ Published0🌍 Public
This example displays a pie chart of wine quality distribution, with percentage labels on each slice and a color-coded legend showing quality ratings. The visualization loads wine quality data from a CSV file hosted on GitHub, using D3's `d3.csv` and `d3.autoType` for data ingestion. It employs D3's `pie` layout, `arc` arc generator, and `scaleOrdinal` color scheme for the SVG rendering. The chart aggregates the data using `d3.rollup` and `d3.sum` to compute counts and percentages for each quality category.
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