Please enable JavaScript to use CodeHS

Animated Chart

In this project, students will learn how to create a dynamic, animated bar chart that visualizes data over multiple time frames using Python libraries such as Pandas and Matplotlib. They will engage in various data manipulation tasks, including sorting and filtering data, as well as enhancing visualizations with custom colors and annotations. This hands-on project not only hones essential coding skills but also fosters a deeper understanding of data visualization techniques, making it an ideal assignment for those looking to combine programming with data analysis.

Hard

6 Hours

Project Description

Background

In this project, students will create an animated bar chart to visualize any dataset of their choosing over multiple time frames. The dataset should have a time-based variable (e.g., year, month, day) and another variable to be analyzed (e.g., sales, user count, temperature). Custom colors will be used to enhance the visualization of different entities within the dataset, and the data will be dynamically sorted for each time frame.

Your Task

Students will be responsible for data manipulation tasks using Pandas, including filtering and sorting their chosen dataset. The end goal is to develop a dynamic, animated bar chart using Matplotlib that updates based on each time frame in the dataset. The chart should incorporate custom colors for different entities and annotate each bar with the corresponding data value. This interactive visualization will allow students to gain insights into trends and patterns in their chosen dataset over time.

Project Demo

Explore this program before assigning it!