Skip to main content
100%

Making a Scatter Plot

✓ Published0🌍 Public
Eegrebing
Last edited Sep 20, 2020
Created on Sep 20, 2020
Forked from HTML Starter

This example shows a minimal scatter plot built with D3 v6 in a React framework, rendering to SVG. It demonstrates how to create a basic chart from scratch using the D3 library, with data points positioned via the `d3.scalePoint` or `d3.scaleLinear` scale. The code includes a simple `index.html` page that loads D3 and a bundled JavaScript file, which uses D3 selections to append circles to the SVG element. The visualization is intentionally bare-bones, focusing on the core mechanics of setting up scales and shapes, with styling provided by an external CSS file.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes