I would like to use the
interval = alt.selection_interval(encodings=['x'])
on only one chart to zoom/resize into the interval I select (from mousedown to mouseup), and only to update view once I finish my brush (mouseup). However, the Altair chart updates as I am selecting the interval, and it jumps everywhere. This is an example of what I am wanting to do:
alt.Chart(weather).mark_rule(size=2).encode(
x=alt.X('date:T', scale=alt.Scale(domain=interval.ref())),
y='temp_min:Q',
y2='temp_max:Q',
color='weather:N'
).add_selection(interval)
This would enable me to select a portion of the chart, and when selection is complete, to zoom/resize into that selection using the selection interval. Thanks all!