Skip to main content
Public

Share visualization

Loading preview…

Rehusable Scatter Plot

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

Rehusable Scatter Plot

0
AArturo Guevara
Last edited Sep 7, 2022
Created on Sep 7, 2022
Forked from Scatter Plot

This example demonstrates a reusable scatter plot built with React and D3, visualizing the classic Iris dataset. It maps petal length and sepal length onto x and y axes using `scaleLinear` and `extent`, rendering circles via SVG. The chart is generated by the custom `scatterPlot` function, which configures margins, radius, and accessor functions through a fluent API. Axes are added with `axisLeft` and `axisBottom`, while data is loaded asynchronously using `csv` and parsed with a row conversion function.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed