Skip to main content
100%

Fork of Scatter Plot with Shape

✓ Published0🌍 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.
MIT Licensed

Similar vizzes