🌍 Public
multiStagescatter
This example shows a reusable scatter plot that cycles between two halves of Titanic passenger data, plotting Age against Fare and coloring points by Sex. Built with D3 v6, the visualization uses `scaleLinear` for axes, `scaleOrdinal` with `schemeCategory10` for color encoding, and `axisLeft`/`axisBottom` for tick marks. The code alternately renders each data subset every five seconds using `setInterval`, swapping between two `scatterPlot` instances invoked via `selection.call()`.
AI-generated descriptionMIT Licensed
Comments
Sign in to join the discussion.