You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The selection doesn't seem to work with time variable:
cars = data.cars.url
brush = alt.selection(type='interval')
points = alt.Chart().mark_point().encode(
x='Year:T', # This is the only thing different from the example
y='Miles_per_Gallon:Q',
color=alt.condition(brush, 'Origin:N', alt.value('lightgray'))
).properties(
selection=brush
)
bars = alt.Chart().mark_bar().encode(
y='Origin:N',
color='Origin:N',
x='count(Origin):Q'
).transform_filter(
brush.ref()
)
alt.vconcat(points, bars, data=cars)
Changing x to be "Horsepower:Q" in points works as expected
The text was updated successfully, but these errors were encountered:
Hi,
The selection doesn't seem to work with time variable:
Changing x to be "Horsepower:Q" in points works as expected
The text was updated successfully, but these errors were encountered: