Reusable Scatter plot
✓ Published0🌍 Public
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.
MIT Licensed