Skip to main content
100%

tutorial-9

✓ Published0🌍 Public
Mmythripopuri2001@gmail.com
Last edited Apr 18, 2024
Created on Apr 18, 2024
Forked from Hello VizHub

This animated scatterplot cycles through four Iris flower measurements, plotting petal width, sepal width, petal length, and sepal length on the x-axis while sepal length stays on the y-axis. It reads the classic Iris dataset via `d3.csv`, encodes species by color, and uses a reusable `scatterPlot` module built with `d3.scaleLinear`, `d3.axisBottom`, and `d3.axisLeft`. A `setInterval` timer updates the x-axis accessor, and the SVG is rendered with colored circles, a legend, and axis labels.

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