Skip to main content
100%

Reusable Scatter plot - ICE 7

✓ Published1🌍 Public
Ssravya010
Last edited Mar 29, 2026
Created on Mar 28, 2026
Forked from HTML Starter

This reusable scatter plot compares math and reading scores from the StudentsPerformance.csv dataset, with gender distinguishing the data points by color. The chart uses d3.v7 to implement a modular scatterPlot() function with configurable accessor methods for x, y, color, and axis labels. D3’s scaleLinear, scaleOrdinal, and schemeTableau10 power the axes and color encoding, while hover tooltips display each point’s exact values. The legend, axes, and dots are rendered dynamically within an SVG container, following D3’s data-join pattern for reusable chart components.

AI-generated description
MIT Licensed

Similar vizzes