Skip to main content
100%

Fork of [Ex.10] Animated Reusable D3 Scatter Plot with labels

✓ Published0🌍 Public
KK V VINITHA
Last edited Mar 27, 2022
Created on Mar 27, 2022

This example demonstrates an animated scatter plot of the Iris dataset, cycling through four different variables on the x-axis every 15 seconds. The code uses D3 v3 with a reusable chart pattern, employing `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` for axes, and `selection.join` with transitions for smooth circle updates. Labels animate with color changes, and the data loads from a CSV file via d3.csv. The SVG rendering includes custom accessors for x/y values and labels, with a 1000ms transition duration for circles and axes.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts and Observable: selection.join.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes