Skip to content

Comments

brushX and brushY#2364

Open
Fil wants to merge 6 commits intofil/brush-datalessfrom
fil/brush-x
Open

brushX and brushY#2364
Fil wants to merge 6 commits intofil/brush-datalessfrom
fil/brush-x

Conversation

@Fil
Copy link
Contributor

@Fil Fil commented Feb 16, 2026

Since we want to support brushing histograms, we needed two additional features:

  • an interval option for snapping the brush on gesture end.
  • support for X1/X2 channels in renderFilter, for rect marks.

(This will require some work to merge with #2363. DONE)

Enregistrement.de.l.ecran.2026-02-16.a.15.03.05.mov

@Fil Fil requested a review from mbostock February 16, 2026 14:03
@Fil Fil mentioned this pull request Feb 17, 2026
@allisonhorst
Copy link

We may want to allow brushing across multiple facet panes (so when you brush on one chart, the brush is also visible and applied to other charts, for example if you have many time series charts in a faceted grid.

@allisonhorst
Copy link

Even if the brush has been applied to a facet, you may want to apply the filter on x and y values only (not the faceting variable in addition).

@Fil Fil mentioned this pull request Feb 20, 2026
@Fil
Copy link
Contributor Author

Fil commented Feb 20, 2026

Both suggestions are applied in #2369

Fil added 4 commits February 20, 2026 11:58
Since we want to support brushing histograms, we needed two additional features:
* an **interval** option for snapping the brush on gesture end.
* support for X1/X2 channels in renderFilter, for rect marks.

(This will require some work to merge with #2363)
# Conflicts:
#	src/interactions/brush.js
Fil and others added 2 commits February 20, 2026 12:26
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
to avoid the context line connecting through the brush, we split the data into several runs, broken when a point is filtered out. (typically on a line chart, this makes one line on the lhs of the brush, the other on the rhs)
@Fil
Copy link
Contributor Author

Fil commented Feb 20, 2026

In my tests there is a recurring issue with line charts (though it's a bit independent of the brushX story), which is that the context mark makes a line that directly goes across the brush. Fix incoming.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants