0
I have a combination chart of a line and a bar chart. Plotly is allowing me to annotate either the bar chart or the line chart. How can I annotate both please?
fig_time_series = go.Figure(
go.Scatter(
x=errors_df["date"],
y=errors_df["count_cumsum"],
mode="lines+markers+text",
text=errors_df["count_cumsum"],
textposition="top center",
name="Cumulative errors"
)
)
fig_time_series.update_layout(title="Error Trend")
fig_time_series.add_trace(
go.Bar(
x=errors_df["date"],
y=errors_df["count"],
text=errors_df["count"],
name="Monthly errors",
)
)
This gives me -
0
I have a combination chart of a line and a bar chart. Plotly is allowing me to annotate either the bar chart or the line chart. How can I annotate both please?
fig_time_series = go.Figure(
go.Scatter(
x=errors_df["date"],
y=errors_df["count_cumsum"],
mode="lines+markers+text",
text=errors_df["count_cumsum"],
textposition="top center",
name="Cumulative errors"
)
)
fig_time_series.update_layout(title="Error Trend")
fig_time_series.add_trace(
go.Bar(
x=errors_df["date"],
y=errors_df["count"],
text=errors_df["count"],
name="Monthly errors",
)
)
This gives me -
Kindly requesting help with annotating the bar chart as well.