Reusable_D3_Scatter_Plot.
✓ Published0🌍 Public
This example demonstrates an animated scatter plot of the Iris dataset, cycling through different feature pairs on the x-axis while keeping sepal length on the y-axis. Points are colored by species using hard-coded color mapping. The visualization uses D3.js (v6) with a reusable `scatterPlot` module that handles scales, axes, and circle rendering via SVG. A `setInterval` triggers updates to the x-value accessor, and the plot re-renders with new axes and titles, including a legend and axis labels.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed