Area Chart Activity 8
✓ Published0🌍 Public
This area chart displays the cost of sales from 2000 to 2013, with a green filled region beneath a black curved line. The visualization uses D3 v5’s `scaleTime`, `scaleLinear`, `area`, and `line` generators with `curveBasis` to create the smoothed path. The SVG rendering includes gridlines via `axisBottom` and `axisLeft`, with tick labels formatted using `format('.3s')`. Data is loaded as CSV from a GitHub gist, parsed with `csv()`, and dates are converted using the native `Date` constructor. Axis labels and titles are styled via CSS classes.
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