activity7pie
✓ Published0🌍 Public
This visualization is a pie chart showing the maximum life expectancy of different car models. The data is loaded from a GitHub-hosted CSV file using D3's `csv` function. The pie chart is rendered as SVG paths generated with `d3.pie`, `d3.arc`, and `d3.scaleOrdinal` for color mapping, with each slice labeled with its value. A legend on the right displays the car names and their corresponding life expectancies using rectangle swatches and text. The chart uses a fixed width and height of 960 by 500 pixels, with the center positioned at (250, 250).
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