Activity 8 Q4
✓ Published0🌍 Public
This visualization displays the cost of sales from 2000 to 2013 as an area chart with a smooth curved line. The chart uses D3 v5’s `scaleTime` and `scaleLinear` to map dates and cost values, with a line generator and area generator using `curveBasis`. Data is loaded from a CSV file via `d3.csv`, and the SVG rendering includes styled axes, tick marks, and green shading under the line. The chart highlights yearly cost trends with clear labels for both axes.
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