Skip to main content
100%

Fork of Reusable D3 Scatter Plot

✓ Published0🌍 Public
Ssushmithameher-patnam
Last edited Mar 10, 2023
Created on Mar 10, 2023

This example shows a scatter plot of the Iris dataset, where the x-axis attribute cycles through petal width, sepal width, petal length, and sepal length every two seconds, while the y-axis remains sepal length. Built as a reusable D3 chart, it uses `d3.scaleLinear`, `d3.extent`, `d3.axisLeft`, and `d3.axisBottom` to render axes and circles, and the `join` operator to update marks efficiently. The SVG is sized to the browser window, with data loaded via D3's `csv` function.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes