Clickable Circles with D3 Rosetta
✓ Published0🌍 Public
Six circles represent BMW models, positioned by coordinates from static data, with color, stroke, and layer order reflecting a user-selected vehicle. Built on d3-rosetta’s `unidirectionalDataFlow` pattern, the example uses `one`, `createStateField`, and `createMemoize` to manage the SVG, render circles via a D3 join, and handle click events that update state, re-rendering with `highlightSelectedDatum` to visually emphasize the chosen datum.
AI-generated descriptionMIT Licensed