🌍 Public
Viewing a saved revision (read-only)
043cbb2f5cc54393a938a690c63b4e7a
DV ASSIGNMENT-2
This interactive pie chart visualizes the distribution of wine quality ratings from a CSV file fetched via a GitHub Gist URL. The visualization uses `d3.pie()` and `d3.arc()` to generate the chart, with an ordinal color scale (`d3.scaleOrdinal`) and `d3.schemeCategory10` for segment colors. Quality counts are aggregated using `d3.rollup`, and each arc is labeled with its quality value. A legend below the chart maps colors to quality categories. The SVG canvas is sized at 960x500, with text labels positioned using arc centroids. The code also includes a reusable scatter plot module, though only the pie chart is rendered.
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.