Skip to content

Instantly share code, notes, and snippets.

@kurasaiteja
Last active March 21, 2021 16:03
Show Gist options
  • Save kurasaiteja/242f8c0623b9093eff557a9b18804da4 to your computer and use it in GitHub Desktop.
Save kurasaiteja/242f8c0623b9093eff557a9b18804da4 to your computer and use it in GitHub Desktop.
title = fill_title_and_subtitle("Vaccine vs Virus", "Comparing the total number of daily new cases and daily vaccinations globally")
fig = go.Figure(data=[
go.Bar(
name="New Cases",
x=data['date'],
y=data['daily_new_cases'],
marker_color="crimson",
),
go.Bar(
name="Vaccinated",
x=data['date'],
y=data['daily_vaccinations'],
marker_color="lightseagreen"
),
])
fig.update_layout(
title=title,
xaxis_title="Date",
yaxis_title="Count",
plot_bgcolor='rgba(0,0,0,0)',
barmode='stack',
hovermode="x"
)
fig.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment