Tutorial: Data Visualization with Altair
Teacher: Natkamon Tovanich
We will create data visualization charts with the Altair library in Python. Altair is a powerful library that allows you to create various types of charts from the grammar of graphics.
Before the class
- In this tutorial, you can choose whether to use Google Colaboratory or install Anaconda and Jupyter Notebook.
- In case you use Jupyter Notebook on your local machine, you need to install the Altair library.
Part 1: Basic Charts
- The student notebook for this tutorial is available for download here.
- Click File > Save a Copy in Drive to clone the tutorial notebook into your Colab Notebooks.
- Click File > Download > Download .ipynb to download the notebook on your local computer.
- The solution will be posted here after the class.
Part 2: Selection and Interaction
In this tutorial, we will continue using the Altair library to add interactions (e.g., binding, selection, and condition) to charts.
- The student notebook is available for download here.
- The solution will be posted here after the class.
Acknowledgment: The tutorials are based on Exploratory Data Visualization with Altair tutorial at PyCon 2018 by Jake Vanderplas and Eitan Lees and Visualization Curriculum from the University of Washington.