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