Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Reusable Scatter Plot - Data Visualization

Public visualization

Viewing a saved revision (read-only)

616b79e20dbb494db93bcada8360b199

Reusable Scatter Plot - Data Visualization

0 stars0🌍 Public
DDanthalakirankumar
Last edited Mar 27, 2022
Created on Mar 27, 2022

This reusable scatter plot visualizes the Iris dataset, mapping petal width against sepal length. Each circle represents a data point, color-coded by species (setosa, versicolor, virginica) using a custom `getColor` function. Built with D3 v6, it uses `scaleLinear`, `axisLeft`, and `axisBottom` to render axes, while the `scatterPlot` factory pattern allows dynamic updates to x-value selections. The SVG is drawn full-window on an orange background with white text and axis labels.

AI-generated description