We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79766af commit 0efbb28Copy full SHA for 0efbb28
plotly/graph_objs/graph_objs.py
@@ -1003,17 +1003,8 @@ def get_data(self, flatten=False):
1003
:returns: (dict|list) Depending on (flat|unflat)
1004
1005
"""
1006
- data = super(Figure, self).get_data(flatten=flatten)
1007
- if flatten:
1008
- keys = data.keys()
1009
- for key in keys:
1010
- new_key = '.'.join(key.split('.')[1:])
1011
- old_data = data.pop(key)
1012
- if key.split('.')[0] == 'data':
1013
- data[new_key] = old_data
1014
- return data
1015
- else:
1016
- return data['data']
+ self.to_graph_objs()
+ return self['data'].get_data(flatten=flatten)
1017
Figure.get_data = get_data
1018
1019
def to_dataframe(self):
0 commit comments