Area Chart Activity 8
✓ Published0🌍 Public
This example visualizes the cost of sales from 2000 to 2013 as an area chart with an overlaid line. It uses D3 v5 with SVG rendering, importing `scaleTime`, `scaleLinear`, `line`, `area`, and `curveBasis` from D3. The chart loads CSV data from a GitHub gist, parses the Year and Cost fields, and displays axes with gridlines and labeled axis titles. The area and line paths are generated using `d3.area` and `d3.line` with a basis curve.
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