-
-
Notifications
You must be signed in to change notification settings - Fork 146
Autorange values stored in dcc.Graph.figure['layout']['xaxis' 'yaxis']['range'] no longer available after version v0.30.1 #321
Comments
Just to add that I've noticed the same thing, particularly noticeable when dcc.Interval is being used to refresh/stream data in real-time. I can programmatically set the axes range, but am not able to retrieve the figure layout range prop in order to be able to "hold" the figure. I suspect the cause is from commit 7b48b18 in v0.30.2: (@valentijnnieman), though I have no clue why edit: I was specifically grabbing from the |
This looks fixed with plotly/plotly.js#3236 and #387 Solution is to define the layout property uirevision (yaxis.uirevision) In my case (time-series data), I will hold the figure layout (layout.uirevision) and update xaxis.uirevision with new range. |
Hi bcliang, Thanks for pointing our the new feature. I made a comment in the forums that the View still resets unless I necessarily interact with the Figure (Zoom in, out, autoscale, etc) which is not ideal. I would like to preserve the IU state without doing that. You can use cchridyp's example here to see what I mean https://community.plot.ly/t/preserving-ui-state-like-zoom-in-dcc-graph-with-uirevision/15793. |
Mysteriously fixed as of dash==1.8.0, thank you Dash team |
I was using the initial autorange values to "hold" my plotly.graph_objs.Layout plot axes from recalculating when dynamically adding or removing plotly.graph_objs.scatter.Markers. Three questions:
The text was updated successfully, but these errors were encountered: