Skip to main content
Public

Share visualization

Loading preview…

1Scatter Plot with React & D3

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

1Scatter Plot with React & D3

2
BBismark Kofi Owusu Sarfo
Last edited Sep 17, 2025
Created on Sep 17, 2025

This scatter plot visualizes the Iris dataset, plotting sepal length on the x-axis against sepal width on the y-axis for 150 individual flowers. The visualization is built using `d3.scaleLinear` for axis scaling and `d3.extent` to compute data domains, with React managing the SVG element lifecycle and state. It loads CSV data asynchronously via `d3.csv`, renders axes with `d3.axisBottom` and `d3.axisLeft`, and draws circles for each data point. The chart includes labeled axes and uses a fixed black fill for all points.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed