Skip to main content
Public

Share visualization

Loading preview…

AVN - Penguins 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

AVN - Penguins Scatter Plot

0
Aavnreddy95
Last edited Jun 26, 2022
Created on Jun 25, 2022

This interactive visualization displays the classic Iris dataset as a scatter plot, mapping petal length on the x-axis and petal width on the y-axis. Each circle is colored by species—green for setosa, orange for virginica, and blue for versicolor—and its horizontal and vertical radii encode sepal length and width, creating an abstract bubble-like representation. Built with D3 v6, the code loads the CSV data via `d3.csv`, uses `scaleLinear` and `extent` for scaling, and renders circles as SVG elements. Axes are drawn with `axisLeft` and `axisBottom`, with custom text labels styled using inline attributes.

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