Skip to main content
100%

DV ASSIGNMENT-2

✓ Published0🌍 Public
Ggoudasrija@gmail.com
Last edited Jul 12, 2024
Created on Jul 10, 2024
Forked from Hello VizHub

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 description

A demonstration of reusable scatter plot.

MIT Licensed

Similar vizzes