Hello,
I am attempting to create a dashboard in Plotly using the âmake_subplotsâ function from plotly.tools.
from plotly.tools import make_subplots
template = make_subplots(rows = 4,
cols = 4,
specs = [[{'colspan':4}, None, None, None],
[{'colspan':4}, None, None, None],
[{}, {}, {'colspan': 2, 'rowspan': 2}, None],
[{}, {}, None, None]]
)
To add bar charts and scatter plots itâs straightforward;
template.append_trace(bar_chart, 1, 1)
But when attempting to add my wind rose chart in the same way I get the following error;
ValueError Traceback (most recent call last)
in ()
5 }})
6 âââ
----> 7 template.append_trace(tokyo_windrose, 3,1)
8 pyoff.iplot(template)/anaconda3/lib/python3.6/site-packages/plotly/basedatatypes.py in append_trace(self, trace, row, col)
1182 ââ", DeprecationWarning)
1183
-> 1184 self.add_trace(trace=trace, row=row, col=col)
1185
1186 def _set_trace_grid_position(self, trace, row, col):/anaconda3/lib/python3.6/site-packages/plotly/basedatatypes.py in add_trace(self, trace, row, col)
1029 return self.add_traces(data=[trace],
1030 rows=[row] if row is not None else None,
-> 1031 cols=[col] if col is not None else None
1032 )[0]
1033/anaconda3/lib/python3.6/site-packages/plotly/basedatatypes.py in add_traces(self, data, rows, cols)
1112 if rows is not None:
1113 for trace, row, col in zip(data, rows, cols):
-> 1114 self._set_trace_grid_position(trace, row, col)
1115
1116 # Make deep copy of trace data (Optimize later if needed)/anaconda3/lib/python3.6/site-packages/plotly/basedatatypes.py in _set_trace_grid_position(self, trace, row, col)
1219 "An axis object for ({r},{c}) subplot "
1220 âcell got deleted.â.format(r=row, c=col))
-> 1221 trace[âxaxisâ] = ref[0]
1222 trace[âyaxisâ] = ref[1]
1223/anaconda3/lib/python3.6/site-packages/plotly/basedatatypes.py in setitem(self, prop, value)
2730 # ### Validate prop ###
2731 if prop not in self._validators:
-> 2732 self._raise_on_invalid_property_error(prop)
2733
2734 # ### Get validator for this property ###/anaconda3/lib/python3.6/site-packages/plotly/basedatatypes.py in _raise_on_invalid_property_error(self, *args)
2910 full_obj_name=full_obj_name,
2911 invalid_str=invalid_str,
-> 2912 prop_descriptions=self._prop_descriptions))
2913
2914 def update(self, dict1=None, **kwargs):ValueError: Invalid property specified for object of type plotly.graph_objs.Area: âxaxisâ
Is it possible to add wind rose charts to the subplots in a dashboard?