Skip to main content
100%

scatterplot

✓ Published0🌍 Public
Vvishnupriya eupuri
Last edited Mar 27, 2024
Created on Mar 20, 2024
Forked from Flower

This scatter plot visualizes the relationship between students’ study hours and their exam scores. The chart uses D3.js v7 to render SVG circles, with a linear scale mapping study hours on the x-axis and exam scores on the y-axis. The data is loaded from a CSV file via `d3.csv`. Axes are added using `d3.axisBottom` and `d3.axisLeft`, with labels for both variables. The code defines a reusable `createScatterPlot` function that takes data and a container ID, setting fixed margins and a 600x400 pixel drawing area.

AI-generated description
MIT Licensed

Similar vizzes