Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Race in Plotly #50

Open
jafr1985 opened this issue Jul 28, 2021 · 1 comment
Open

Race in Plotly #50

jafr1985 opened this issue Jul 28, 2021 · 1 comment

Comments

@jafr1985
Copy link

Hello all, can anyone tell me how to save the race in plotly, like the second graph on https://www.dexplo.org/bar_chart_race/ with title "COVID-19 Bar Chart Race with Plotly" and Play and Pause buttons. For me already works the bar chart race but exporting to mp4, gif or html.

Best regards.

Package Version


bar-chart-race 0.2.0

@huangxin168
Copy link

In order to save the animation to disk, use a string of the file name of where you'd like to save as the second argument. You'll need to install ffmpeg first in order to save the animation. Once installed, you'll be able to save the animation as a wide variety of formats (mp4, m4v, mov, etc...). To save the animation as a gif, install ImageMagick.

bcr.bar_chart_race(df, 'docs/videos/covid19.mp4', figsize=(5, 3))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants