Skip to main content
100%

Simple Line Chart

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

This visualization displays a simple line chart mapping student marks (x-axis) against the number of students achieving those marks (y-axis), with axis labels clarifying the relationship. The chart is rendered as an SVG element using D3 v7 within a React-adjacent HTML page. The code uses `d3.scaleLinear` to map data coordinates to pixel positions, `d3.line()` to generate the path, and the `axisLeft` and `axisBottom` functions from D3 to draw labeled axes. Data is provided as a static array of x/y pairs, and the line itself is stroked in orange with no fill.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes