Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 6 Question 3

Public visualization

Viewing a saved revision (read-only)

385ed471eb6f49d98350be4355227c6d

Activity 6 Question 3

0 stars0🌍 Public
RRukmini Devi Y
Last edited Oct 24, 2024
Created on Oct 24, 2024

This scatter plot visualizes the relationship between hours studied and exam scores for 20 students, with points colored by class participation level (low, medium, high) using an ordinal color scale. The D3.js v7 code loads inline CSV data, assigns each point to a category based on participation thresholds, and renders an SVG with linear axes. A `d3.scaleOrdinal` maps categories to colors, while `d3.scaleLinear` scales the x-axis (hours) and y-axis (exam score), with margins and gridlines defining the chart layout.

AI-generated description