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
There are many undocumented input options that work with Altair. It would be interesting to explore these more, e.g. maybe the date input could be useful to filter time series data which is not that easy with sliders currently. number also looks useful and maybe even file?
This example can be modified:
search_input=alt.selection_point(
fields=['Name'],
empty=False, # Start with no points selectedbind=alt.binding(
input='date', # Change this to any of the options at https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#input_typesplaceholder="Car model",
name='Search ',
)
)
alt.Chart(data.cars.url).mark_point(size=60).encode(
x='Horsepower:Q',
y='Miles_per_Gallon:Q',
tooltip='Name:N',
opacity=alt.condition( # This condition would also need to be updated accordinglysearch_input,
alt.value(1),
alt.value(0.05)
)
).add_params(
search_input
)
Have you considered any alternative solutions?
No response
The text was updated successfully, but these errors were encountered:
What is your suggestion?
There are many undocumented input options that work with Altair. It would be interesting to explore these more, e.g. maybe the
date
input could be useful to filter time series data which is not that easy with sliders currently.number
also looks useful and maybe evenfile
?This example can be modified:
Have you considered any alternative solutions?
No response
The text was updated successfully, but these errors were encountered: