Skip to main content
Public

Share visualization

Loading preview…

Fork of Reusable D3 Scatter Plot 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

Fork of Reusable D3 Scatter Plot with Symbols

1
Rradhadevarapu
Last edited Mar 12, 2023
Created on Mar 10, 2023

This example visualizes the Iris Dataset as a scatter plot, mapping petal width and sepal length. It uses a reusable D3 scatter plot module that applies a linear scale for axes and an ordinal scale to map the three iris species to distinct symbol shapes. The plot draws SVG symbols for each data point and adds left and bottom axes. Data is loaded asynchronously with d3.csv from a remote URL, and the code demonstrates a modular, extensible pattern for building configurable charts.

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