Is it possible to somehow intercept a click on ‘Reset axes’ and/or ‘Autoscale’ buttons on the floating toolbar to update the ‘relayoutData’ property of the dcc.Graph component?
Thanks in advance!
Is it possible to somehow intercept a click on ‘Reset axes’ and/or ‘Autoscale’ buttons on the floating toolbar to update the ‘relayoutData’ property of the dcc.Graph component?
Thanks in advance!
Looking at the example in https://dash.plot.ly/interactive-graphing, it looks like clicking on these buttons does update the relayoutProperty
. In particular, clicking reset axes gives me:
{
"xaxis.autorange": true,
"xaxis.showspikes": false,
"yaxis.showspikes": false,
"yaxis.autorange": true
}
and clicking on the autoscale
button gives me:
{
"xaxis.autorange": true,
"yaxis.autorange": true
}
thank you, you’re right! I was looking at xaxis.range and yaxis.range which are not in relayouData after the ‘Autoscale’ button is clicked.