🌍 Public
Viewing a saved revision (read-only)
af1e3eb5fceb43ad856504ce6e843b6e
Reusable D3 Scatter Plot_Rinoj
This animated scatter plot visualizes the Iris dataset, cycling through different x-axis variables (petal width, sepal width, petal length, sepal length) while keeping sepal length on the y-axis. The SVG rendering uses D3's modular `scaleLinear`, `scaleOrdinal`, `axisLeft`, and `axisBottom` APIs to construct a reusable chart. Data points are colored and shaped by species, with a dynamic legend. The animation is driven by `setInterval`, re-calling the plot function to update axes and marks.
AI-generated descriptionA reusable scatter plot inspired by Towards Reusable Charts.
Shows the Iris Dataset.