Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

DV ASSIGNMENT-2

Public visualization

Viewing a saved revision (read-only)

043cbb2f5cc54393a938a690c63b4e7a

DV ASSIGNMENT-2

0 stars0🌍 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

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.