act7-q1
✓ Published2🌍 Public
This example displays a pie chart showing the distribution of insurance records across regions. It loads a CSV file from a GitHub gist and aggregates the data by region using `d3.rollup`. The pie slices are rendered with `d3.pie()` and `d3.arc()` into an SVG, with each slice labeled with its count and colored using `d3.scaleOrdinal` with the `schemeCategory10` palette. A separate legend SVG lists the region names and their corresponding colors.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed