Skip to main content
Public

Share visualization

Loading preview…

Fork of Scatter Plot with Shape

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 Scatter Plot with Shape

0
UUmarani Vemula
Last edited Jul 3, 2023
Created on Jul 3, 2023
Forked from Hello VizHub

This example demonstrates a scatter plot of the Iris dataset, coloring points by shape to distinguish between the three species of iris flowers. It uses D3 v7 to load the CSV data from a GitHub repository, scales the sepal length and petal length axes with `scaleLinear`, and maps species to symbols using `scaleOrdinal` with `symbolsFill`. A custom shape legend built with D3’s `symbol` generator shows the species-to-shape correspondence, while axes labels are added via a separate module importing `axisLeft` and `axisBottom`.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.

Comments

Sign in to join the discussion.

MIT Licensed