Skip to main content
100%

Fork of Reusable D3 Scatter Plot - vijq1

✓ Published0🌍 Public
Vvijaysaichigullapally1@gmail.com
Last edited Oct 25, 2025
Created on Oct 25, 2025

This example presents a reusable scatter plot that visualizes the relationship between study hours and exam scores, with points colored by four categories (A through D). Built with D3 v7, the chart uses `scaleLinear` for both axes, `scaleOrdinal` with `schemeSet2` for categorical coloring, and `axisLeft`/`axisBottom` for labeling. A legend is rendered manually, while the `scatterPlot` module follows the “Towards Reusable Charts” pattern with chainable setters. The data comes from an external CSV file, parsed with numeric conversion before rendering as SVG circles.

AI-generated description
MIT Licensed

Similar vizzes