Skip to main content
100%

Fork of Scatter Plot with Shape

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

Similar vizzes