Skip to main content
100%

Fork of Scatter Plot with Color Legend

✓ Published0🌍 Public
TTrashBoatDora
Last edited Sep 26, 2022
Created on Sep 26, 2022

This example visualizes the Iris Dataset as a scatter plot, mapping petal length on the x-axis and sepal width on the y-axis, with color encoding species and a legend for reference. The visualization uses React with D3 v5, employing `scaleLinear` for axes, `scaleOrdinal` for categorical colors, and `extent` to set domains. Marks are drawn as SVG circles with tooltips showing formatted values. The code defines reusable axis and legend components, and loads data via `d3.csv` from a remote URL.

AI-generated description

A scatter plot of The Iris Dataset with color legend.

MIT Licensed

Similar vizzes