Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Scatter Plot with Shape

Public visualization

Viewing a saved revision (read-only)

75722c654bb0438aaed904e6559f4db5

Fork of Scatter Plot with Shape

0 stars0🌍 Public
HHarshiiiiiiiip
Last edited Jul 5, 2023
Created on Jul 5, 2023
Forked from Hello VizHub

This example shows a scatter plot of the Iris dataset, encoding sepal length on the x-axis and petal length on the y-axis. Species is represented by three distinct shapes via a `scaleOrdinal` with `symbolsFill`, and a custom legend displays the shape-to-species mapping. The code builds reusable modules for axes and legends, loads data with `csvParse` from a remote URL, and renders the visualization using D3 v7’s data-join pattern with `selectAll` and `join`.

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.