Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of Iris Dataset Scatter Plot

Public visualization

Fork of Fork of Iris Dataset Scatter Plot

0 stars0🌍 Public
VVenkata Sai Preetham
Last edited Jun 25, 2022
Created on Jun 25, 2022

This scatter plot visualizes the classic Iris dataset, showing the relationship between petal length on the x-axis and petal width on the y-axis. Points are colored by species (setosa, versicolor, virginica) using blue, red, and black, with circles that also encode sepal dimensions through their rx and ry attributes. The example demonstrates a decoupled React and D3 integration, where the `useData` hook loads and parses CSV data, and the `viz` function uses d3.scaleLinear, d3.extent, and d3.csv to render SVG circles and axes. The rendering approach combines React state management with D3’s selection and join methods inside a window-sized SVG.

AI-generated description

This viz is a starter that demonstrates patterns used in real world projects in which complexity is anticipated to scale.

  • Decoupled React & D3 integration
  • Opening moves for scalable complexity
  • Industry standard ES modules and JSX
  • Copy-paste into existing projects

Any questions? Ask on Twitter!

Also viewable in:

Comments

Sign in to join the discussion.

MIT Licensed