Skip to main content
Public

Share visualization

Loading preview…

Dynamic sPlot with symbols

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

Dynamic sPlot with symbols

0
DDonald Bagwell
Last edited Nov 28, 2023
Created on Nov 28, 2023

This dynamic scatter plot visualizes the Iris Dataset, mapping petal width against sepal length while encoding the three iris species with distinct D3 symbol shapes. The visualization uses `d3.scaleLinear` and `d3.scaleOrdinal` to position points and assign symbols, with `d3.axisLeft` and `d3.axisBottom` providing labeled axes. Each data point renders as an SVG path generated by the `d3.symbol` generator, sized at 100 pixels squared, and the chart updates transparently when the dataset or encoding functions change through its reusable `scatterPlot` module.

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