Vega-Lite Brush + Linked Filter
A two-chart cross-filter: drag a brush selection on the upper line chart and the lower bar chart instantly updates to count only points inside the time window. This is Vega-Lite's signature interactive idiom — the entire interaction is declarative inside the spec via a `param` of
Template details
- chart
- interactive
- brush
- linked-filter
- vega
- vega-lite
When to use this template
This visualization excels at revealing how a selection in one dimension (e.g., a time range) influences the distribution or aggregation of data in another dimension. Analysts use it to drill down into specific data segments, compare subsets against the whole, or identify correlated changes across different views of the same data. It's ideal for exploring relationships between a 'master' overview and 'detail' breakdown.
- Datasets with a primary continuous or ordinal dimension (e.g., time).
- Data where a subset selection impacts another aggregated view.
- Multi-dimensional datasets requiring interactive exploration.
- High-cardinality data needing focused drill-down.
- Paired quantitative and categorical data for comparison.
- Data suitable for master-detail exploration patterns.