Skip to main content
100%

Fork of Reusable D3 Scatter Plot

✓ Published0🌍 Public
Aajaysonu
Last edited Mar 29, 2023
Created on Mar 29, 2023

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 description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes