Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

A4_ScatterPlot

Public visualization

Viewing a saved revision (read-only)

90e99351c3e24af39a3c9c5eb1f62b4b

A4_ScatterPlot

0 stars1🌍 Public
DDuc Pham
Last edited Mar 3, 2024
Created on Feb 26, 2024
Forked from A3_BoxPlot

This example visualizes the relationship between study hours and exam scores using a scatter plot, where each circle represents a student. The data comes from a CSV file loaded with D3’s `d3.csv` method and filtered to exclude zero-value pairs. The SVG chart uses `d3.scaleLinear` for both axes, `d3.axisBottom`, and `d3.axisLeft` for tick marks, while circles are appended with `d3.selectAll` and `enter`. Interactive tooltips appear on mouseover, displaying the exact hours and scores for each point. All rendering is done with React-compatible vanilla JavaScript and D3 v6.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.