Reusable_Scatter_Plot
✓ Published1🌍 Public
This example demonstrates an animated scatter plot of the Iris dataset, cycling through four different x-axis variables (petal width, sepal width, petal length, and sepal length) while keeping petal length on the y-axis. The plot uses D3.js via UNPKG, with custom ES6 modules for the reusable scatter plot logic. Data is loaded from a CSV file, and the visualization updates every few seconds using `setInterval`, recoloring points by species. The SVG rendering includes axes, a legend, and axis labels, with styling applied via CSS.
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