Skip to main content
100%

Fork of Reusable D3 Scatter Plot

✓ Published0🌍 Public
SSonuSriN
Last edited Mar 23, 2022
Created on Mar 23, 2022

This example presents a reusable D3 scatter plot visualizing the Iris Dataset. The plot maps petal width to the x-axis and sepal length to the y-axis, with data points rendered as SVG circles. Every two seconds, the x-axis mapping automatically cycles through different Iris measurements (petal width, sepal width, petal length, sepal length), animating the scatter plot. The visualization uses d3’s scaleLinear, axisLeft, axisBottom, and the join operation to update marks, and it loads the data via d3.csv. The code is adapted from the "Towards Reusable Charts" pattern.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes