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)

aee90d705c564cbd99946c1721c699d9

Fork of Scatter Plot with Shape

0 stars0🌍 Public
BBhavyaMammai
Last edited Jun 28, 2023
Created on Jun 28, 2023
Forked from Hello VizHub

This example visualizes the Iris dataset, plotting sepal length against petal length with points shaped according to species. The code uses D3 v7 APIs including `scaleLinear`, `scaleOrdinal`, `symbolsFill`, and `symbol` to generate the scatter plot, along with `axisLeft` and `axisBottom` for axes. A custom shape legend is rendered using `shapeLegend`, and data is loaded asynchronously via `fetch` and parsed with `csvParse`.

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.