Example Gallery#
This gallery contains a selection of examples of the plots Altair can create. Some may seem fairly complicated at first glance, but they are built by combining a simple set of declarative building blocks.
Many draw upon sample datasets compiled by the Vega project.
If you can’t find the plots you are looking for here, make sure to check out the Related Projects section, which has links to packages for making e.g. network diagrams and animations.
Note
With the release of Altair 6, the documentation was updated to use
from altair.datasets import data instead of from vega_datasets import data.
This change also introduced updated column names in some datasets (e.g., spaces
instead of underscores).