Area Chart Activity 8
✓ Published0🌍 Public
This area chart displays the cost of sales from 2000 to 2013, with a smooth curve highlighting trends over time. The visualization loads CSV data via d3.csv, parses the year column into Date objects, and uses d3.scaleTime and d3.scaleLinear to map data to SVG coordinates. The chart combines a line generator and an area generator, both using d3.curveBasis, with custom axis labels and tick formatting via d3.format.
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