Skip to main content
100%

Simple Area Chart

✓ Published0🌍 Public
Ss-pranathi
Last edited Mar 28, 2022
Created on Mar 25, 2022
Forked from HTML Starter

This example shows a simple area chart mapping “Marks Obtained” on the x-axis against “No. of Students” on the y-axis, with an unfilled, semi-transparent purple region beneath a stroked upper boundary. It uses D3 v7’s `scaleLinear`, `area` generator, and `axisLeft`/`axisBottom` to render axes and the path within an SVG. The hardcoded dataset of 21 x/y pairs is drawn directly, with axis labels added as rotated text.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes