I am trying to plot multiple charts in one graph using plotly express. I need to plot one stacked bar chart and two lines in the same figure. I have 5 columns–year,priority,value,opened and closed. I was able to plot stacked bar chart as shown in the code pasted below. Can anyone help me in plotting two more lines–one with ‘opened’ column w.r.t ‘year’ and other with ‘closed’ w.r.t ‘year’. Looking forward for your help. Thanks in advance.
Tried with add_trace() but did not work. plotly graph objects is not working in my notebook version as it is showing blank. So plotly express is my only way out now.
Code to plot stacked bar chart(Please help for drawing two more lines in the same graph):
import plotly_express as px
fig = px.bar(df, x=‘year’, y=‘value’,color=‘priority’,