Activity 6 Question 3
✓ Published0🌍 Public
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 descriptionMIT Licensed