Skip to main content
100%

Reusable D3 Scatter Plot_Rinoj

✓ Published0🌍 Public
RRinoj-Gautam
Last edited Mar 26, 2023
Created on Mar 24, 2023

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 description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes