Skip to main content
100%

Fork of Reusable D3 Scatter Plot

✓ Published0🌍 Public
Ppmbhupathibalu@gmail.com
Last edited Mar 21, 2024
Created on Mar 21, 2024

This example demonstrates a reusable D3 scatter plot that visualizes the Iris dataset, with a cycle of different x-axis dimensions—petal width, sepal width, petal length, and sepal length—while the y-axis remains fixed on sepal length. The visualization animates every two seconds, switching the x-value mapping to reveal different correlations in the data. Built with D3 v6, it uses scaleLinear, extent, axisLeft, axisBottom, and data joins to render SVG circles and axes. The plot is configured via a custom scatterPlot function with setters for width, height, margin, and radius, and the data is loaded from a CSV file.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes