Activity 7 area chart
✓ Published0🌍 Public
This area chart visualizes car sales from 2014 to 2024, with the x-axis mapping time and the y-axis showing sales volume. The chart combines a smooth black line and an orange filled area, with a legend positioned at the top-right. The code uses D3 v5 functions like `scaleTime`, `scaleLinear`, `line`, `area`, and `curveBasis` to generate SVG paths, and loads data from a CSV hosted on GitHub.
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