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)

19872499dcf842f6883a04fa5981765f

Fork of Scatter Plot with Shape

0 stars0🌍 Public
Aakshayvenishetty1437
Last edited Jul 19, 2023
Created on Jul 19, 2023
Forked from Hello VizHub

This example displays the classic Iris dataset as a scatter plot, mapping sepal length to the x-axis and petal length to the y-axis, with each species represented by a distinct D3 symbol shape. It uses `d3.scaleLinear` for axes, `d3.scaleOrdinal` with `symbolsFill` for categorical shapes, and `d3.axisLeft`/`axisBottom` for labeled axes. A custom legend module draws the symbol shapes alongside species names. Data is fetched as CSV and parsed with `d3.csvParse`, with numeric columns converted before rendering.

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.