Skip to main content
100%

SYmbols Reusable Scatter Plot

✓ Published0🌍 Public
SShannon Teoh
Last edited May 25, 2024
Created on May 25, 2024

This example demonstrates a reusable scatter plot built with D3.js and React, visualizing the classic Iris dataset of flower measurements. It shows the relationship between petal length and sepal length as circles, with axes labeled using D3's `axisBottom` and `axisLeft` from version 6.6.2. The code defines a configurable `scatterPlot` component that accepts data, value accessors, dimensions, and margins via a fluent interface, enabling flexible reuse across datasets. Data is loaded from a raw GitHub-hosted CSV file and rendered as an SVG, with circles positioned using `scaleLinear` and `extent` for automatic axis scaling.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes