Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Resusable Scatter Plot

Public visualization

Viewing a saved revision (read-only)

08ef3f5609254c8cbd456b091143f7e4

Resusable Scatter Plot

0 stars0🌍 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