You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use dash components in my Flask app to render shapes on a dcc.Graph figure input. Oftentimes, this involves appending a list of shapes to the graph using the formula below:
In the example above, a series of circles are generated around centroids for objects in the graph.
This scheme generally works well, but occasionally there will be in the following error when calling go.Figure(self.figure):
Invalid property specified for object of type plotly.graph_objs.layout.shape.label: 'texttemplate'
When I evaluate the shapes, sometimes they have a strange property added to them:
It appears that plotly will randomly generate the label portion of the shape dictionary with a blank text template, which causes an error. It seems to happen indiscriminately and without a discernible pattern.
By comparison, most shapes appear to have a valid dictionary structure:
Pinging here to see if there were any updates on this. I am continung to receive this error and it prevents certain callbacks from firing properly, such as when I want to export the current canvas from dcc.Graph as HTML. For example, with the following shapes contained in my go.Figure:
I use dash components in my Flask app to render shapes on a
dcc.Graph
figure input. Oftentimes, this involves appending a list of shapes to the graph using the formula below:In the example above, a series of circles are generated around centroids for objects in the graph.
This scheme generally works well, but occasionally there will be in the following error when calling
go.Figure(self.figure)
:When I evaluate the shapes, sometimes they have a strange property added to them:
It appears that plotly will randomly generate the
label
portion of the shape dictionary with a blank text template, which causes an error. It seems to happen indiscriminately and without a discernible pattern.By comparison, most shapes appear to have a valid dictionary structure:
The text was updated successfully, but these errors were encountered: