Skip to main content
Public

Share visualization

Loading preview…

ice 6 scatter

vizhub.com

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

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 & exportHTML, source ZIP

ice 6 scatter

0 stars0Public
TTejamod
Last edited Jun 25, 2022
Created on Jun 25, 2022

This example visualizes the Iris Dataset as a scatter plot, mapping petal length on the x-axis and petal width on the y-axis, with each point colored by species (gold for setosa, purple for virginica, skyblue for versicolor). The SVG rendering uses D3 v6’s `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` to set scales and axes, while circles are positioned with `cx` and `cy` attributes. The code assigns non-standard `rx` and `ry` attributes to each circle based on sepal dimensions, though these do not affect the circle’s display radius. Data loads via `d3.csv` from a remote CSV, with axis labels styled in large fonts.

AI-generated description

A vanilla HTML implementation of a D3 scatter plot. Shows the Iris Dataset.

Comments

Sign in to join the discussion.

MIT Licensed