Skip to main content
100%

Fork for area chart

✓ Published1🌍 Public
Aachalasam
Last edited Jul 4, 2022
Created on Jul 4, 2022
Forked from line chart

This example visualizes the runs scored by Rohit Sharma from 2007 to 2021, combining a smooth line chart with a filled area beneath it. The SVG rendering uses d3.scaleTime and d3.scaleLinear to map years and run counts, while d3.line and d3.area generators with curveBasis create the curved paths. Axis ticks are formatted with d3.format and styled via CSS classes, with data parsed from a CSV file loaded through d3.csv.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes