Hi All,
We are trying to have a drop down on the map. Since I couldn’t find an easyway to integrate with plotly express. I tried below approach.
–> Create a plot with plotly express.
–> Retrieve data from plotly express object and data and append them into Figure…
for index in range(len(cols_dd)):
value=cols_dd[index]
traces.append(ffig.data[index])
buttons.append(dict(label=value,
method="update",
args=[{"visible":list(visible==value)},
{"title":f"<b>{value}</b>"}]))
Is there any other method to do instead of taking the data from ffig ?.
rgds
Kamal