Area chart - Activity 7
✓ Published0🌍 Public
This example uses D3 v6 to visualize total energy consumption by electric vehicle model. It loads CSV data from a GitHub repository, aggregates energy values per vehicle model with `d3.rollups`, and renders an area chart using `d3.area()`, `d3.scaleBand()`, and `d3.scaleLinear()`. The SVG output includes rotated x-axis labels, a y-axis title, and value labels above each point.
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