A brush selects observations by a region of the plot. For order investigation, the two coordinates might be basket value and item count. The chart owns the pointer gesture; the application decides what to do with the selected observations.
This component retains only a count for its summary. It does not pretend that an array index is a durable order ID.
Put this component in widgets/brush_inspector.rs. The parent supplies finite numeric samples, translated labels and a translated summary pattern containing {count}. Use ChartBrush::rect() for a rectangular brush.
Preview is not a selection result
preview_rect(x, y, width, height) uses fractions of the plot. It supplies an initial visual region; the reducer above runs when an actual drag ends. A click or very small region clears the brush.
Test completed drags, clearing and no matching points with LiveTest. Keep equivalent list or numeric-filter controls for users who cannot drag. To act on orders rather than count points, resolve hits against the corresponding data snapshot and its durable IDs, especially after filtering or zooming. The gallery screenshot is a fixture, not an interaction test.