🌍 Public
Viewing a saved revision (read-only)
146303f987f242a18c4691f71ee1fbd0
Reusable Scatter plot
This example demonstrates an interactive scatter plot of the Iris dataset, cycling through combinations of sepal and petal measurements on the x-axis while keeping sepal length on the y-axis. Built with D3 v6, it loads CSV data via `d3.csv`, uses a reusable `scatterPlot` module with `scaleLinear`, `axisLeft`, and `axisBottom`, and animates axis changes with `setInterval`. The SVG also includes a custom color legend for species and styled 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.