Fork of Fork of ICE-7 Area Chart
✓ Published0🌍 Public
This example displays the cost of sales from 2000 to 2013 as a smooth area chart, with the filled region emphasizing the trend over time. The visualization uses D3 v5’s `scaleTime`, `scaleLinear`, `area`, and `line` generators with a `curveBasis` smoothing, rendered as SVG paths. Axes are drawn with `axisLeft` and `axisBottom`, including gridlines and formatted tick labels via `format('.3s')`. Data is loaded as CSV from a GitHub gist, parsed into `Date` objects for the year and numeric cost values, and positioned within margins using a standard SVG `<g>` transform.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed