Viz - Point - Brush
✓ Published0🌍 Public
NNPashaP
Last edited Jan 20, 2018
Created on Jan 20, 2018
This example shows a scatterplot of 1,000 random points, where users can drag a rectangular brush to select points and highlight them in blue. It uses the viz.js `viz.point()` function to render the SVG circles and `d3.brush()` to handle the brushing interaction. On brushing, the code calls `point.filterRect()` to identify which points fall within the selection and applies a CSS class to style selected circles with a blue fill and black stroke.
AI-generated descriptiongpl-3.0 Licensed