Skip to main content
100%

Assignment2-Piechart

✓ Published0🌍 Public
Llokesh kautharapu
Last edited Jul 13, 2024
Created on Jul 13, 2024
Forked from Hello VizHub

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 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.
MIT Licensed

Similar vizzes