from plotly.subplots import make_subplots
import plotly.graph_objects as go
fig1 = px.area(CPI_and_Interest, x=CPI_and_Interest.index, y=Chi_so)
fig2 = px.line(CPI_and_Interest, x=CPI_and_Interest.index, y=[‘Overnight’])
fig = make_subplots(rows=2, cols=1,
shared_xaxes=True,
vertical_spacing=0.02)
fig.add_trace(fig1, row=1, col=1)
fig.add_trace(fig2, row=2, col=1)
fig.show()
I have been trying to create a subplot with these 2 above plots (fig1 and fig2). However, it keeps showing me this following error:
All remaining properties are passed to the constructor of the specified trace type
(e.g. [{'type': 'scatter', ...}, {'type': 'bar, ...}])
Any ideas how to fix this?