Skip to main content
100%

Fork of Scatter Plot with Shape

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

Similar vizzes