Skip to main content
100%

Fork of Hello VizHub

✓ Published0🌍 Public
Ssohith kampalli
Last edited Mar 21, 2025
Created on Mar 21, 2025
Forked from Hello VizHub

This example visualizes gold stock price data as a pie chart grouped by year, showing the sum of closing prices for each year. It loads CSV data from a GitHub Gist, cleans the dataset by removing columns and filtering low-volume rows, then aggregates values using `d3.nest` and `d3.sum`. The chart is rendered with D3 v6 as SVG elements, using `d3.pie`, `d3.arc`, and `d3.scaleOrdinal` with `d3.schemeCategory10`, alongside a color-coded legend beside the pie slices.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG (pinned at v6, since this runtime environment only supports UMD, and in v7 D3 dropped UMD support)
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes