Skip to main content
100%

Fork of Reusable D3 Scatter Plot

✓ Published0🌍 Public
MMar-99
Last edited Mar 23, 2022
Created on Mar 23, 2022

This example displays the Iris Dataset as an animated scatter plot, cycling through four different feature combinations every two seconds. The visualization is constructed using D3.js version 6.7, leveraging `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` to map data values to SVG circle positions. The plot is rendered as a full-window SVG, with data loaded from a CSV file hosted on GitHub. A reusable `scatterPlot` charting function encapsulates the rendering logic, allowing dynamic updates of the x-axis mapping without rebuilding the entire visualization.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes