Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Activity_7_Q1

Public visualization

Viewing a saved revision (read-only)

142aebc21a8745f288bccc2f300c89b1

Fork of Activity_7_Q1

0 stars2🌍 Public
GGOPI MUPPURI
Last edited Nov 4, 2024
Created on Nov 4, 2024
Forked from Activity_7_Q1

This visualization shows the distribution of car classes in a dataset, displaying the proportion of each category as a donut chart with percentage labels on each slice. The chart uses D3.js version 7.8.5, loaded via CDN, to create the pie layout and arc generators, with a categorical color scale mapping four classes—unacc, acc, vgood, and good—to distinct colors. Data is loaded remotely from a CSV file hosted on GitHub Gist, and a legend on the right side displays each class with its raw count. The SVG rendering includes white strokes between slices to visually separate the segments.

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.