Skip to main content
Explore
Solutions
Bespoke Studio
Pricing
Quick Start
Demo
Log in
Send feedback
✕
Tell us what works and what could be better. We read every submission.
Send feedback
✕
Tell us what works and what could be better. We read every submission.
Home
•
Fork Viz
Fork Viz
Create your own copy of this visualization.
Forking from
Scatter Plot with Color
Title
*
Description
This example visualizes the Iris Dataset as a scatter plot, with sepal length on the x-axis and petal length on the y-axis. The three species (setosa, versicolor, virginica) are distinguished by color using a categorical color scale with a legend. The visualization is built with D3.js, using `scaleLinear` for axes, `scaleOrdinal` and `schemeCategory10` for color mapping, and the selection `.join` pattern to manage SVG elements. Separate modules for axes and color legend keep the code modular.
Visibility
Public
Private (only you), Pro
Unlisted (anyone with link)
Private work requires Pro.
Upgrade
Cancel
Fork Viz