What are the possible properties that can be returned by the relayoutData Graph component property?

Hey,

Been looking for a canonical list of which properties are returned by the relayoutData property in the dcc.Graph component.

Does one exist? I’ve checked the code & docs, but can’t find a reference.

Thanks!

1 Like

In the dash docs the best way to get a handle on relayoutData (while not a canonical list) is the toy example on this page: https://dash.plot.ly/interactive-graphing

In addition to range changes, it will return whether the drag mode is lasso, select, or pan after clicking on the relevant modebar buttons.

While we don’t have a canonical list, you can see how this is being formed here: https://github.com/plotly/dash-core-components/blob/bdb22329b6a62e392ae7707da0369354cf908678/src/components/Graph.react.js#L48-L63

And, this event is coming directly from plotly.js, where the event is also named relayout: https://plot.ly/javascript/plotlyjs-events/#update-data