Designing for our Personality Results

Every six months or so, our design team settles into the Austin Central Library for a themed campfire to get us thinking about where we’ve been and where we’re going. They are often great for…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Creating a Bar Chart Race Animation in Python with Matplotlib

bar chart race

A bar chart race is an animated sequence of bars that show data values at different moments in time. The bars re-position themselves at each time period so that they remain in order (either ascending or descending).

The trick to making a bar chart race is to transition the bars slowly to their new position when their order changes, allowing you to easily track the movements.

For this bar chart race, we’ll use a small dataset produced by John Hopkins University containing the total deaths by date for six countries during the currently ongoing coronavirus pandemic. Let’s read it in now.

png

For this tutorial, the data must be in ‘wide’ form where:

Let’s begin by creating a single static bar chart for the specific date of March 29, 2020. First, we select the data as a Series.

Add a comment

Related posts:

3 Tips for Managing Multiple Customer Requests

Businesses nowadays are looking into an exponential growth, and in most cases when a digital business strategy implemented properly they will experience a massive flow of customer requests through…

auto loan questionnaire

auto loan questionnaire. “auto loan questionnaire” is published by Jtareq Yehy.

The Benefits of Focusing on a Single Task

Technology has made our lives easier and more convenient. However, with this advancement in technology, there are some tasks that we now enjoy doing less. The benefits of focusing on a single task…