Skip to main content
100%

Fork of Reusable D3 Scatter Plot

✓ Published0🌍 Public
KKeerthipriyaBankuru
Last edited Jul 2, 2022
Created on Jul 2, 2022

This animated scatter plot visualizes the Iris dataset, showing the relationship between petal width and sepal length for three flower species. The visualization cycles through different variable pairings every two seconds, rotating among petal_width, sepal_width, petal_length, and sepal_length on the x-axis. Built with D3 v6, the example uses `scaleLinear` and `scaleOrdinal` for axes and color encoding, with circles rendered as SVG elements. Data loads from a GitHub Gist CSV, and the reusable `scatterPlot` function updates axes and marks dynamically through a `setInterval` loop.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes