Skip to main content
100%

Task 9 Question 1

✓ Published0🌍 Public
Ssasidhharreddy@gmail.com
Last edited Apr 29, 2024
Created on Apr 29, 2024
Forked from Hello VizHub

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 description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes