Skip to main content
100%

Question1-1 Anil

✓ Published0🌍 Public
AAnilKumarReddyVanteru@my.unt.edu
Last edited Apr 29, 2024
Created on Apr 29, 2024
Forked from ques1 supriya

This example shows a pie chart of car horsepower by make, with a color-coded legend for each manufacturer. Built with D3 v6, it loads CSV data from GitHub, parses numeric values, and uses `d3.pie` and `d3.arc` to generate the SVG slices. A `d3.scaleOrdinal` with `schemeCategory10` maps makes to colors, while `d3.csv` handles asynchronous data fetching. The chart includes a custom legend built from `color.domain()`, rendered as SVG rectangles and text.

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