Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity7_q1

Public visualization

Viewing a saved revision (read-only)

e8a7d1e63c6847a18ef898e0a44cc9ac

Activity7_q1

0 stars0🌍 Public
Mm.maanvireddt761@gmail.com
Last edited Nov 6, 2024
Created on Nov 5, 2024
Forked from Hello VizHub

This example shows the distribution of car classification categories (unacc, acc, good, vgood) as a pie chart with a legend. It uses D3.js to load CSV data, compute category counts, and render the chart as an SVG via `d3.pie()`, `d3.arc()`, and `d3.scaleOrdinal()` for color mapping. Percentage labels are placed on slices using a separate arc for label positioning, and the legend lists each category with its count.

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.