Sai_Kiran_Reddy_K_Assignment_2
✓ Published0🌍 Public
An animated scatter plot of the Iris dataset cycles through four floral measurements on the x-axis while plotting sepal length on the y-axis. Circles are colored by species (setosa, versicolor, virginica) with a legend. The D3.js code loads data via `d3.csv`, builds axes with `d3.axisLeft` and `d3.axisBottom`, and scales positions using `d3.scaleLinear`. It uses `setInterval` to rotate the x-axis variable every few seconds, updating the SVG rendering. The visualization is rendered as an SVG with custom styling, including a title 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