🌍 Public
Viewing a saved revision (read-only)
2fcb7b91700c4ad9b0abea508051243e
Activity 6 Question 3
This scatter plot visualizes exam scores for 20 students, plotting math scores on the x-axis against English scores on the y-axis. Each dot is color-coded according to performance category—Excellent, Good, or Satisfactory—based on the student’s average score. The visualization uses D3.js v7 to create an SVG chart with linear scales, axes, and a legend. The code defines scales with d3.scaleLinear and applies a color scale with d3.scaleOrdinal and d3.schemeCategory10, rendering the data points as circles.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.