🌍 Public
Viewing a saved revision (read-only)
70557b81f9464e85b63ab9599d693565
Area Chart Activity 8
This area chart visualizes the cost of sales from 2000 to 2013, using a smooth curve to connect data points over time. The chart employs D3 v5’s `scaleTime`, `scaleLinear`, `line`, and `area` generators with `curveBasis` to create a filled gradient beneath the line. Data is loaded from a CSV via `d3.csv` and parsed with `new Date()`, with axes rendered using `axisBottom` and `axisLeft` in an SVG. The styling includes colored tick labels, an orange axis label, and a light green fill for the area.
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.