Skip to main content
100%

Assignment7 Reusable Scatter Plot2

✓ Published0🌍 Public
445.saiful@gmail.com
Last edited Mar 30, 2026
Created on Mar 30, 2026
Forked from D3 Starter

This example shows the positive relationship between study hours and exam scores for 50 students, with each circle representing one student’s performance. The reusable scatter plot function takes a data array and configuration object to create scales, axes, labels, and points using D3 v7. The code uses d3.scaleLinear, d3.axisBottom, d3.axisLeft, and d3.csv to load the student performance dataset with StudyHours and ExamScore fields. The chart is rendered as an SVG, with teal semi-transparent dots positioned according to the study hours on the x-axis and exam scores on the y-axis.

AI-generated description
MIT Licensed

Similar vizzes