Skip to main content
Public

Share visualization

Loading preview…

ICE 7 - Reusable 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

ICE 7 - Reusable Scatter Plot

0
NNITIN0601
Last edited Apr 30, 2022
Created on Mar 23, 2022
Forked from ICE 6 : Task 2

This example presents a reusable scatter plot built with React and D3, visualizing the Iris dataset. It displays petal width against sepal length, with points colored by species (red for setosa, black for versicolor, green for virginica). The visualization includes axes and labels, and cycles through different column pairings every 140 milliseconds, animating the scatter plot as it updates the x and y values. The code uses D3’s `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` to handle scaling and axes, rendering SVG circles via a custom `scatterPlot` 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