Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of activitty7.1question1

Public visualization

Viewing a saved revision (read-only)

49ec54a34e1c4b81b1b79600b24ed3e2

Fork of activitty7.1question1

0 stars0🌍 Public
Ggketan456@gmail.com
Last edited Nov 5, 2024
Created on Nov 4, 2024

This pie chart shows the distribution of clothing sizes from a CSV dataset loaded from a GitHub gist. The code uses d3.csv to fetch the data, counts size occurrences, and renders a categorical pie with d3.pie, d3.arc, and d3.scaleOrdinal with schemeCategory10 colors. Labels appear at each arc’s centroid, and an HTML legend is built below the SVG using D3 selections. The visualization renders in SVG with a 600x600 viewport.

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.