Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

reusable_Scatterplot

Public visualization

reusable_Scatterplot

0 stars1🌍 Public
Ppoppy
Last edited Jun 10, 2023
Created on May 28, 2023

This scatterplot visualizes the Iris dataset, mapping petal length against sepal width, with points colored by species using a D3 ordinal color scale. The visualization is built with a reusable `scatterPlot` function that leverages D3 scales (`scaleLinear`, `scaleOrdinal`) and axes (`axisLeft`, `axisBottom`). Data is loaded asynchronously via `d3.csv` from a GitHub gist, and the SVG rendering is driven by a data-join pattern. The chart includes adjustable margins, point radius, and a toggleable path element.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed