Skip to main content
100%

Fork of Scatter Plot with Color

✓ Published1🌍 Public
Ppemmasaniprudhvinadh
Last edited Mar 30, 2023
Created on Mar 30, 2023

This example shows the Iris Dataset as a scatter plot with colored points representing different species. The visualization maps petal length to the x-axis and sepal width to the y-axis, using a categorical color scale to distinguish species. Built with React and D3 v5, it uses scaleLinear for axes, scaleOrdinal for colors, and renders circles as SVG marks. Tooltips display x-axis values formatted with D3's format function. Data is loaded asynchronously from a CSV via useData, with axis labels and styling defined in an SVG canvas.

AI-generated description

A scatter plot of The Iris Dataset.

MIT Licensed

Similar vizzes