Plotly-Dash stock app in python, with clientside callback (yaxis autoscale on xaxis zoom)
问题 I'm creating a simple stock chart app in dash-plotly (python) whith an xaxis slider. When sliding the xaxis, I want the yaxis to dynamically rescale to the view. I think I have managed to get the callback function to trigger when sliding the xaxis scale through the 'relayoutData' hook. But instead of updating the yaxis the script throws errors. I'm not sure of the proper syntax to update layout from a callback function. Any ideas? Here is my code so far. It runs, but yaxis is set at run time,