Hey yโall
Plotting assets
Iโm plotting $MSTR assets as follows
fig = px.area(df_all, x='end', y='val', color='fact', title=f'{symbol.upper()} : Balance sheet', width=1000, height=600)
fig.add_trace(go.Scatter(x=df_assets['end'], y=df_assets['val'], mode='lines', name='Assets'))
st.plotly_chart(fig)
Plotting liabilities
Similarly, Iโm plotting liabilities like this (these show up as negative):
fig = px.area(df_all_liabilities, x='end', y='val', color='fact', title=f'{symbol.upper()} : Balance sheet', width=1000, height=600)
fig.add_trace(go.Scatter(x=df_liabilities['end'], y=df_liabilities['val'], mode='lines', name='Liabilities'))
st.plotly_chart(fig)
Question
Is there a way to have both of these on the same chart?
Thanks!