Fork of Reusable D3 Scatter Plot
✓ Published0🌍 Public
This example presents a fork of a reusable D3 scatter plot that visualizes the Iris dataset, with four attributes available for cycling on the x-axis. A timer updates the plot every two seconds, switching which column is mapped to the x-axis while the y-axis remains fixed to sepal length. The chart uses `d3.scaleLinear`, `d3.axisLeft`, `d3.axisBottom`, and `d3.extent` from D3 v6, rendering points as SVG circles with a fixed radius. The animation is driven by `setInterval`, re-invoking the scatter plot function to update the axis and circle positions.
AI-generated descriptionA reusable scatter plot inspired by Towards Reusable Charts.
Shows the Iris Dataset.
MIT Licensed