Is it possible if user select more than one checklist it automatically unselect the first one on screen not manual
list is shrinking behind the scene but on screen it still selected two
Could you give some more context? It is not clear what you are trying to do.
Did you try the forum search?
https://community.plotly.com/search?q=uncheck%20order%3Alatest
i did not try forum search i donβt know about forum search my question is that when i select the second checklist the first could automatically uncheck like on dcc.RadioItems on image i provide on upper first i select 'Has Summer Skinng and then i select Has Nigth skinng the first should automatically uncheck that is the question
I mean, radio buttons are exactly for that use case.
But yes, you can check/uncheck items via callback.
how please could me give me example this is my code
def hello_word(price_value,map_checklist):
title = f"Resorts with the ticket price less than ${price_value}"
df = resorts.query("Price<@price_value")
if isinstance(map_checklist, list):
for value in map_checklist:
if value == 'Has Summer Skiing':
df = resorts.query("`Summer skiing` == 'Yes'").query("Price<@price_value")
elif value == 'Has Night Skiing':
df = resorts.query(" Nightskiing == 'Yes'").query("Price<@price_value")
elif value == 'Has Snow Park':
df = resorts.query("Snowparks =='Yes' ").query("Price<@price_value")
fig = px.density_map(
df,
lat='Latitude',
lon='Longitude',
z='Total slopes',
zoom=2,
center={"lat": 40.0902, "lon": -99.7129},
radius=25,
map_style="open-street-map"
).update_layout(
margin={"r":0,"t":20, "l":20,"b":20},
)
hi @assad_zafar
Are these Radio button examples helpful?
it helpful but i just trying to do with checklist