Assignment2-Piechart
✓ Published0🌍 Public
This pie chart visualizes United States car sales by brand using data from a CSV file. Built with D3 v5, it renders an SVG with color-coded segments and a legend, where each slice's size reflects the brand's year-to-date sales. The code uses D3's `pie`, `arc`, and `scaleOrdinal` APIs to compute and style the chart, and loads data via `csv` from a GitHub gist.
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