🌍 Public
Viewing a saved revision (read-only)
48a1de361fbc494295c1996e742bb4e8
Tut
This animated scatter plot cycles through the Iris dataset, displaying different sepal and petal measurements on the x-axis while petal width and sepal length appear on the y-axis. It uses D3’s scaleLinear, axisLeft, and axisBottom to generate axes and a custom scatterPlot function to render circles. The SVG visualization updates every few seconds via setInterval, re-drawing the chart with new data columns. Points are colored by species—setosa in skyblue, versicolor in lightgreen, and virginica in orange—with a legend and title added dynamically. Data comes from a remote CSV file.
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.