pub type ZoomCommit = Arc<dyn Fn(usize, usize) + Send + Sync>;Expand description
Callback fired when the user commits a drag-to-zoom. Receives the inclusive original-index bounds of the selected range (already composed with any prior internal slice, if the chart is uncontrolled).
When this callback is set, the chart switches to controlled-zoom
mode: it does not apply the slice internally. The consumer is
expected to react — typically by refetching a narrower window of
data and pushing it into the chart’s data signal — and the chart
just redraws with whatever shape the consumer hands back.
Aliased Type§
pub struct ZoomCommit { /* private fields */ }