Task-Assignment-2
✓ Published0🌍 Public
This example presents an animated scatter plot of the Iris dataset, cycling through different flower measurements on the x-axis while keeping sepal length fixed on the y-axis. It uses D3 version 6 to load the CSV data via `d3.csv`, scales with `d3.scaleLinear`, and renders axes with `d3.axisLeft` and `d3.axisBottom`. A custom reusable `scatterPlot` ES6 module manages the chart’s configuration, while a `setInterval` loop updates the x-axis and redraws the SVG elements. Circles are colored by species (setosa, versicolor, virginica), with a static legend and title displayed.
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