Skip to main content
100%

Fork of Reusable D3 Scatter Plot

✓ Published1🌍 Public
NNaimisha-M
Last edited Jul 1, 2022
Created on Jul 1, 2022

This scatter plot visualizes the classic Iris dataset, displaying petal width against sepal length for each sample. The chart uses a reusable D3 module with a fluent interface, built on `d3.scaleLinear`, `d3.extent`, and `d3.axisLeft`/`axisBottom` for scaled axes. Rendered as an SVG, the visualization cycles through four different feature pairings every two seconds via `setInterval`, updating the x-axis and circle positions in place. The code leverages D3 6.7.0 and fetches the dataset from a GitHub Gist, with a custom "Share Tech" font applied to the axis labels.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes