Fork of Area Chart Activity 8
✓ Published0🌍 Public
This area chart visualizes the cost of sales from 2000 to 2013, with a smooth curved line and a light green filled region beneath it. The chart uses D3 v5 APIs including `scaleTime`, `scaleLinear`, `area`, `line`, and `curveBasis` to generate the SVG paths. The data is loaded from a remote CSV file, parsed with `d3.csv`, and formatted so the x-axis uses time scales while the y-axis applies a compact number format. Axis labels are styled with orange text, and grid lines are rendered via tick marks.
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