Skip to main content
100%

Activity 7 , question 1

✓ Published0🌍 Public
Hharsha13638@gmail.com
Last edited Nov 5, 2024
Created on Nov 5, 2024
Forked from Hello VizHub

This visualization shows the distribution of car classes in a dataset using a donut pie chart, with each slice labeled by its percentage and accompanied by a color-coded legend showing category names and counts. The chart is built with D3.js v7, loading CSV data from a GitHub gist, and uses `d3.pie` and `d3.arc` to generate the slices. A categorical color scale maps the four classes, while text labels and the legend are positioned using SVG transformations.

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.
MIT Licensed

Similar vizzes