Altair

  • Getting Started
  • User Guide
  • Examples
  • Reference
  • Ecosystem
  • Release Notes
  • Help
logo

5.0.0

Examples

  • Gallery
  • Tutorials
    • Exploring Seattle Weather
On this page
  • Simple Charts
  • Bar Charts
  • Line Charts
  • Area Charts
  • Circular Plots
  • Scatter Plots
  • Histograms
  • Maps
  • Interactive Charts
  • Case Studies
  • Other Charts

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. To access them yourself, install vega_datasets.

python -m pip install vega_datasets

Simple Charts#

Simple Bar Chart Simple Heatmap Simple Histogram Simple Line Chart Simple Scatter Plot with Tooltips Simple Stacked Area Chart Simple Strip Plot

Bar Charts#

Bar Chart with Highlighted Bar Bar Chart with Labels Bar Chart with Line at Mean Bar Chart with Line on Dual Axis Bar Chart with Negative Values Bar Chart with Rolling Mean Bar Chart with rounded edges Bar and Tick Chart Calculating Percentage of Total Compact Trellis Grid of Bar Charts Diverging Stacked Bar Chart Grouped Bar Chart Grouped Bar Chart with Error Bars Grouped Bar Chart with xOffset Horizontal Bar Chart Horizontal Grouped Bar Chart Horizontal Stacked Bar Chart Layered Bar Chart Normalized Stacked Bar Chart Sorted Bar Chart Stacked Bar Chart Stacked Bar Chart with Sorted Segments Stacked Bar Chart with Text Overlay Trellis Stacked Bar Chart

Line Charts#

Bump Chart Filled Step Chart Line Chart with Confidence Interval Band Line Chart with Cumulative Sum Line Chart with Layered Aggregates Line Chart with Logarithmic Scale Line Chart with Percent axis Line Chart with Points Line Chart with Sequence Generator Line Chart with Varying Size Line Chart with datum Line Chart with datum for color Multi Series Line Chart Slope Graph Step Chart

Area Charts#

Area Chart with Gradient Cumulative Count Chart Faceted Density Estimates Horizon Graph Interval Selection Example Layered Area Chart Normalized Stacked Area Chart Stacked Density Estimates Streamgraph Trellis Area Chart Trellis Area Sort Chart

Circular Plots#

Donut Chart Pacman Chart Pie Chart Pie Chart with Labels Radial Chart

Scatter Plots#

Binned Scatterplot Brushing Scatter Plot to show data on a table Bubble Plot Connected Scatterplot (Lines with Custom Paths) Dot Dash Plot Jitter Chart Multifeature Scatter Plot Polynomial Fit Plot with Regression Transform Quantile-Quantile Plot Scatter Matrix Scatter Plot with Href Scatter Plot with LOESS Lines Scatter Plot with Minimap Scatter Plot with Rolling Mean Simple Scatter Plot with Errorbars Simple Scatter Plot with Labels Stripplot Table Bubble Plot (Github Punch Card) Trellis Scatter Plot Wind Vector Map

Histograms#

Histogram with Responsive Bins Histogram with a Global Mean Overlay Layered Histogram Trellis Histogram

Maps#

Choropleth Map Locations of US Airports Repeated Choropleth Map US Income by State: Wrapped Facet World Map World Projections

Interactive Charts#

Interactive Average Interactive Chart with Cross-Highlight Interactive Crossfilter Interactive Legend Interactive Rectangular Brush Interactive Scatter Plot and Linked Layered Histogram Multi-Line Highlight Multi-Line Tooltip Multi-panel Scatter Plot with Linked Brushing Multiple Interactions Scatter Plot and Histogram with Interval Selection Selection Detail Example Selection Histogram Simple Interactive Colored Scatterplot Slider Cutoff Using Selection Interval with mark_area

Case Studies#

Anscombe's Quartet Atmospheric CO2 Concentration Becker's Barley Trellis Plot Connections Among U.S. Airports Interactive Cumulative Wikipedia Donations Falkensee Gapminder Bubble Plot Iowa's renewable energy boom Isotype Visualization Isotype Visualization with Emoji Locations of US Airports London Tube Lines Natural Disasters One Dot Per Zipcode Seattle Weather Heatmap Seattle Weather Interactive The U.S. employment crash during the Great Recession Top K Items Top K Letters Top-K plot with Others U.S. state capitals overlayed on a map of the U.S US Population Over Time US Population Pyramid Over Time US Population: Wrapped Facet Wheat and Wages Window Rank Line Chart

Other Charts#

Bar Chart with Highlighted Segment Becker's Barley Trellis Plot (wrapped facet) Binned Heatmap Boxplot with Min/Max Whiskers Candlestick Chart Comet Chart Example Error Bar with Standard Deviation Error Bars showing Confidence Interval Facetted Scatterplot with marginal histograms Gantt Chart Hexbin Chart Image tooltip Isotype Grid Layered chart with Dual-Axis Multiple Marks Normalized Parallel Coordinates Example Parallel Coordinates Example Pyramid Pie Chart Ranged Dot Plot Ridgeline plot Example Sorted Error Bars showing Confidence Interval Stem and Leaf Plot Text over a Heatmap Violin Plot Wilkinson Dot Plot

previous

Data transformers

next

Exploring Seattle Weather

© Copyright 2016-2022, Altair Developers.

Created using Sphinx 4.5.0.