Fork of Reusable D3 Scatter Plot
✓ Published0🌍 Public
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 descriptionA reusable scatter plot inspired by Towards Reusable Charts.
Shows the Iris Dataset.
MIT Licensed