plotly stack

Solutions on MaxInterview for plotly stack by the best coders in the world

showing results for - "plotly stack"
Camila
04 Feb 2017
1from plotly.subplots import make_subplots
2import plotly.graph_objects as go
3
4fig = make_subplots(rows=len(df.columns), cols=1)
5
6for i in len(df.columns):
7  fig.append_trace(go.Scatter(
8      x=[3, 4, 5],
9      y=[1000, 1100, 1200],
10  ), row=i+1, col=1)
11
12# Edit the layout
13fig.update_layout(height=600, width=600, title_text="Stacked Subplots")
14fig.update_layout(title='<b>Title</b>',
15                   xaxis_title='<b>x</b>',
16                   yaxis_title='<b>y</b>')
17fig.show()
queries leading to this page
plotly stackstack in plotlyplotly stack