Skip to content

[Feature] brushX: a transient drag-range mode #198

Open

Description

@toomingos

Problem

A line or area chart should keep hover tooltip and crosshair, and also let the user press-drag to get an unsnapped x range. The range should exist only while the button is held. brushX cannot do this: its range is persistent and has handles.

Expected

An opt-in mode such as { persistent: false, handles: false }: preview events while dragging, one commit on release, then the range resets (also on pointer leave or cancel). Idle hover can use hover: 'passthrough' once #162 lands.

The docs could also link the existing application-owned route (pointer: false with interaction.resolvePointer and setControlledFocus) from the brush docs (interactions-and-selections.md:447-451, interactions-and-selections.md:370-374).

Related

PR #162 fixes hover focus being cleared while brushX is mounted. Nothing covers the transient mode.

Activity

  1. changed the title [-]brushX: add a transient drag-range mode[/-] [+][Feature] brushX: a transient drag-range mode[/+] on Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions