Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Scatter Plot with Color - Correct Version

Public visualization

Viewing a saved revision (read-only)

14fce7fb495340ef853d99f152a7b726

Fork of Scatter Plot with Color - Correct Version

0 stars0🌍 Public
BBen Brophy
Last edited Jan 3, 2022
Created on Jan 3, 2022

This example displays the classic Iris dataset as a scatter plot of petal length versus sepal width, with points colored by species. The visualization uses SVG rendering within a React application, leveraging d3-scale functions like `scaleLinear` and `scaleOrdinal` for positioning and color encoding. Axis components are built with `d3.ticks` to generate tick marks, while the data is loaded asynchronously via `d3.csv` from a GitHub gist. The code also includes custom formatting with `d3.format` for the bottom axis labels.

AI-generated description

A scatter plot of The Iris Dataset.