tutorial-9
✓ Published0🌍 Public
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 descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed