Fork of Reusable D3 Scatter Plot
✓ Published0🌍 Public
This is a reusable D3.js scatter plot that visualizes the Iris Dataset, cycling through four flower measurements (petal width, sepal width, petal length, sepal length) on the x-axis every two seconds while keeping sepal length on the y-axis. The code uses D3 v6 modules including `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` to compute scales and render SVG axes and circles. The plot is built as a reusable JavaScript function with configurable properties like width, height, margin, and radius, and it re-renders the SVG with animated transitions as the selected column changes.
AI-generated descriptionA reusable scatter plot inspired by Towards Reusable Charts.
Shows the Iris Dataset.
MIT Licensed