I want to add percentage valued dropdown in plotly graph and after selection of option wanted to pass it to my function
um = [
dict(
active=-1,
buttons=list([
dict(label="40",
method="update",
args=[]),
dict(label="60",
method="update",
args=[]),
dict(label="80",
method="update",
args=[]),
]),
x=1,
y=1.2
)
]
fig.update_layout(updatemenus=um)
def get_value(high):
print(high)
Here i want to get value 80 when option is selected and pass to a function get_value() for futher processing to update graph