Skip to main content
100%

Reusable Scatterplot with D3.js

✓ Published0🌍 Public
Hharsha
Last edited Jul 21, 2023
Created on Jul 21, 2023
Forked from Hello VizHub

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 description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes