Hi, there! I’m trying to update my Graph component, but nothing happened.
dcc.Graph(
figure=go.Figure(
data=Data_Coins['key'],
....
updatemenus=list([
dict(
type="buttons",
buttons=list([
dict(label='Label',
method='restyle',
args=['data', Data_Coins['key2']]))
)
I’m using updatemenus to create buttons inside chart and when button clicked I want to change data of Figure.
As you can see I used method=‘restyle’. Also I tried to use ‘update’ method, but got the same result.
Thanks for help!