Skip to main content
100%

Resusable Scatter Plot

✓ Published0🌍 Public
SSai Vamshi B
Last edited Mar 30, 2026
Created on Mar 30, 2026

A reusable scatter plot displays the relationship between students' study hours and exam scores, with each point representing a student. The chart uses axes, labels, and a title to clarify the positive correlation between the two variables. Built with D3 v7, it leverages the reusable `scatterPlot` component to render SVG elements. Data is loaded from a CSV file, and the code uses `d3.scaleLinear`, `d3.extent`, and `d3.axisBottom`/`d3.axisLeft` to construct and scale the plot dynamically.

AI-generated description
MIT Licensed

Similar vizzes