Skip to main content
100%

Fork of Reusable D3 Scatter Plot

✓ Published0🌍 Public
FFAN CHI YU(范紀予)
Last edited Oct 19, 2022
Created on Oct 19, 2022

This reusable scatter plot, built with D3.js, visualizes the NBA dataset from a GitHub Gist, with each point representing a player. It shows the relationship between two selected attributes—initially petal width and sepal length—while coloring the points by team abbreviation. The plot’s axes and circles are rendered as SVG, with an animation cycling through four different attribute combinations every two seconds. The implementation uses D3’s `scaleLinear`, `scaleOrdinal`, `axisLeft`, and `axisBottom` APIs to construct the chart dynamically.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes