Skip to main content
100%

Reusable Scatter plot Activity 8

✓ Published0🌍 Public
HHarshiiiiiiiip
Last edited Jul 5, 2023
Created on Jul 5, 2023
Forked from Hello VizHub

This interactive SVG scatter plot cycles through Iris flower measurements, comparing petal width, sepal width, petal length, and sepal length on the x-axis against sepal length on the y-axis. D3.js (v6) scales axes and animates transitions via `setInterval`, while points are colored by species (setosa, versicolor, virginica) using a manual marker mapping. The example loads data from a remote CSV, builds the chart with a custom `scatterPlot` module using `scaleLinear`, `axisLeft`, and `axisBottom`, and includes a static color legend.

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