Reusable Scatterplot with D3.js
✓ Published0🌍 Public
This example demonstrates a reusable scatterplot built with D3.js v6 and React, displaying two sample CSV datasets that users can toggle between via a button. The visualization shows grouped data points as colored circles, with linear scales mapping X and Y values to SVG coordinates, ordinal color encoding for group categories, and axes with titles. Rendering relies on SVG elements and D3’s axis, scale, and CSV parsing APIs, while the legend updates based on the active dataset’s group domain.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed