Is there a way to plot multiple gantt charts in one plot. I have tried to use the subplot method and it is not working.
from plotly.offline import plot
import plotly.figure_factory as ff
fig = tools.make_subplots(rows=1, cols=2)
fig1 = ff.create_gantt(data1, title=title1, group_tasks=True, show_colorbar=False)
fig2 = ff.create_gantt(data1, title=title2, group_tasks=True, show_colorbar=False)
fig.append_trace(fig1, 1, 1)
fig.append_trace(fig2, 1, 2)
I get an error with huge message which ends this way–
The ‘data’ property is a tuple of trace instances
that may be specified as:
- A list or tuple of trace instances
(e.g. [Scatter(…), Bar(…)])
- A list or tuple of dicts of string/value properties where:
- The ‘type’ property specifies the trace type
One of: [‘area’, ‘bar’, ‘barpolar’, ‘box’,
‘candlestick’, ‘carpet’, ‘choropleth’, ‘cone’,
‘contour’, ‘contourcarpet’, ‘heatmap’,
‘heatmapgl’, ‘histogram’, ‘histogram2d’,
‘histogram2dcontour’, ‘mesh3d’, ‘ohlc’,
‘parcats’, ‘parcoords’, ‘pie’, ‘pointcloud’,
‘sankey’, ‘scatter’, ‘scatter3d’,
‘scattercarpet’, ‘scattergeo’, ‘scattergl’,
‘scattermapbox’, ‘scatterpolar’,
‘scatterpolargl’, ‘scatterternary’, ‘splom’,
‘streamtube’, ‘surface’, ‘table’, ‘violin’]
- All remaining properties are passed to the constructor of
the specified trace type
(e.g. [{'type': 'scatter', ...}, {'type': 'bar, ...}])