Skip to content

Instantly share code, notes, and snippets.

@StephenFordham
Created June 23, 2021 14:15
Show Gist options
  • Save StephenFordham/d2c4ed913424ffff6726a2fe3864ec80 to your computer and use it in GitHub Desktop.
Save StephenFordham/d2c4ed913424ffff6726a2fe3864ec80 to your computer and use it in GitHub Desktop.
plotting_animated_bar
fig = px.bar(plot_df, x='Provider County', y="Observed Prescribing Rate per 100 Visits", color="Provider County",
animation_frame="Year", animation_group="Provider County", range_y=[3, 70],
title='Antibiotic Prescribing rates in US counties')
fig.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment