Activity 8 Question 4
✓ Published0🌍 Public
This example visualizes the cost of sales over time from 2000 to 2013, combining a smooth line chart with a filled area chart beneath it. The SVG rendering uses D3 v5 APIs including `scaleTime`, `scaleLinear`, `line`, `area`, and `curveBasis` to draw the paths, while `axisBottom` and `axisLeft` generate gridlines with red tick labels. The data is loaded as CSV from a GitHub gist, with the year parsed into a Date object and cost coerced to a number.
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