Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Scatter Plot with colors

Public visualization

Viewing a saved revision (read-only)

f7cdb5a91d854cc3ab3a52a0fa11b225

Scatter Plot with colors

0 stars1🌍 Public
GGayan Priyadarshana
Last edited Aug 3, 2023
Created on Aug 3, 2023

This scatter plot displays the Iris dataset, showing sepal length on the x-axis and sepal width on the y-axis, with each species (Setosa, Versicolor, and Virginica) represented by a distinct color. The visualization uses d3.scaleLinear for both axes and d3.scaleOrdinal to map variety categories to a categorical color palette. React manages the component state and rendering, while d3.csv loads the remote dataset and d3.extent determines the axis domains. SVG circles are drawn with tooltips that display formatted x-values when hovered.

AI-generated description

A scatter plot of the Iris Dataset