I am building a complex chart that consists of scatters and bars. The only way to get it right is to set yaxis.autorange to false. But then if I doublecllick on the chart as soon as it ready it will autosize and Y axis will change. I have tried different settings for the doublecllick, nothing. Any recommendations?
This topic is quite old but I am facing the exact same problem.
The double click seems to toggle the autorage value even if I force it to false initially.
Have you found a workaround ?
I don’t quite understand what you need, but these are some of the values that can be configured for the double-click behavior within the parameters passed in the configuration in the newPlot function.
I just tried to set doubleClick to False and the graph was still responding to the doubleClick event.
This made me realise something was overwriting the config in my code.
In one of my clientside callback, I update my figure using the Plotly.react function which seems to overwrite the config. Adding the doubleClick to this function solved my issue.