Last active
March 21, 2021 16:03
-
-
Save kurasaiteja/242f8c0623b9093eff557a9b18804da4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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