Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Scatter Plot with D3 Rosetta

Public visualization

Viewing a saved revision (read-only)

ceaae220633a42579a7d04090269b08b

Scatter Plot with D3 Rosetta

0 stars3🌍 Public
CCurran Kelleher
Last edited Jul 7, 2025
Created on Jul 3, 2025

This example shows an interactive scatter plot of the Iris dataset, visualizing sepal length and width with points colored by species. The visualization includes a legend that highlights data points of a species when hovered. It demonstrates the d3-rosetta library's unidirectional data flow pattern, using `one` for DOM element management and `createStateField` for state handling. The code uses D3 v7 APIs including `d3.scaleLinear`, `d3.scaleOrdinal`, `d3.axisBottom`, and `d3.axisLeft` within a React framework.

AI-generated description