Simple Area Chart
✓ Published0🌍 Public
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 descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed