Fork of D3 Starter
✓ Published0🌍 Public
This example demonstrates how to add interactive brushing to a D3 visualization. It displays a single circle in an SVG element that changes color based on user selection: the circle turns green when it falls within the brushed area and pink otherwise. The code uses d3.brush to create the selection region and listens to brush events to trigger the updateChart function. Rendering occurs via SVG, with d3 v7 handling both the circle and brush interactions.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed