Skip to main content
100%

Area Chart Activity 8

✓ Published0🌍 Public
Ssaikrishnabussa
Last edited Jul 20, 2023
Created on Jul 20, 2023
Forked from HTML Starter

This area chart visualizes the cost of sales from 2000 to 2013, using a smooth curve to show trends over time. Built with React and D3 v5, the SVG renders both a line path and a shaded area beneath it. The code uses `scaleTime`, `scaleLinear`, `line`, `area`, and `curveBasis` to generate the shapes, while `axisBottom` and `axisLeft` add labeled axes. Data comes from a CSV file, parsed with `csv`, and each year is converted to a Date object for temporal scaling.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes