Fork of Reusable D3 Scatter Plot
✓ Published0🌍 Public
This example presents a reusable D3 scatter plot that visualizes the Iris Dataset, with animated transitions between different medical measurements. It shows a static scatter plot initially, then cycles through the dataset’s numerical columns every two seconds, updating the x-axis to reflect the selected variable while the y-axis remains fixed on lymphocyte count. The visualization uses D3’s `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` to render axes, and `selection.join` to manage circle elements. Data is loaded from a CSV file, and the animation uses `setInterval` to repeatedly update the chart.
AI-generated descriptionA reusable scatter plot inspired by Towards Reusable Charts.
Shows the Iris Dataset.
MIT Licensed