Fork of Hello VizHub
✓ Published0🌍 Public
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 descriptionAn 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
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed