Altair Logo
2.2.0dev0

Getting Started

  • Overview
  • Installation
  • Basic Statistical Visualization

Gallery

  • Example Gallery
    • Simple Charts
      • Scatter Plot with Tooltips
      • Simple Bar Chart
      • Simple Heatmap
      • Simple Histogram
      • Simple Line Chart
      • Simple Line Chart with Markers
      • Simple Scatter Plot
      • Simple Stacked Area Chart
      • Strip Plot
    • Bar Charts
      • Bar Chart with Highlight
      • Box Plot with Min/Max Whiskers
      • Calculating Percentage of Total
      • Candlestick Chart
      • Diverging Stacked Bar Chart
      • Error Bars showing Confidence Interval
      • Gantt Chart
      • Grouped Bar Chart
      • Horizontal Aggregate Bar Chart
      • Horizontal Stacked Bar Chart
      • LayerChart with Bar and Tick
      • Layered Bar Chart
      • Layered Bar Chart with Line as Mean
      • Layered Plot with Dual-Axis
      • Normalized Stacked Bar Chart
      • Simple Bar Chart with Labels
      • Simple Highlighted Bar Chart
      • Stacked Bar Chart
      • Trellis Stacked Bar Chart
    • Line Charts
      • Line Chart with Layered Aggregates
      • Line Chart with Percent axis
      • Line chart with Confidence Interval Band
      • Multi Series Line Chart
      • Slope Graph
      • Step Chart
    • Area Charts
      • Horizon Graph
      • Interval Selection Example
      • Layered Area Chart
      • Normalized Stacked Area Chart
      • Streamgraph
      • Trellis Area Chart
    • Scatter Plots
      • Binned Scatterplot
      • Bubble Plot
      • Connected Scatterplot (Lines with Custom Paths)
      • Dot Dash Plot
      • Multifeature Scatter Plot
      • Polynomial Fit Plot
      • Scatter Matrix
      • Simple Scatter Plot with Errorbars
      • Simple Scatter Plot with Labels
      • Table Bubble Plot (Github Punch Card)
      • Trellis Scatter Plot
    • Histograms
      • Histogram with a Global Mean Overlay
      • Layered Histogram
      • Trellis Histogram
    • Maps
      • Choropleth Map
      • Repeated Choropleth Map
      • World Projections
    • Interactive Charts
      • Faceted Scatter Plot with Linked Brushing
      • Interactive Average
      • Interactive Chart with Cross-Highlight
      • Interactive Crossfilter
      • Interactive Rectangular Brush
      • Multi-Line Highlight
      • Multi-Line Tooltip
      • Scatter Plot and Histogram with Interval Selection
      • Selection Detail Example
      • Selection Histogram
      • Simple Interactive Colored Scatterplot
    • Case Studies
      • Anscombe’s Quartet
      • Becker’s Barley Trellis Plot
      • Cumulative Wikipedia Donations
      • Falkensee
      • Gapminder Bubble Plot
      • Isotype Visualization
      • Locations of US Airports
      • London Tube Lines
      • Natural Disasters
      • One Dot Per Zipcode
      • Seattle Weather Interactive
      • Top K Letters
      • U.S. state capitals overlayed on a map of the U.S
      • US Population Over Time
      • US Population Pyramid Over Time
    • Other Charts
      • Binned Heatmap
      • Facetted Scatterplot with marginal histograms
      • Layering text over a heatmap
      • Multiple Marks
      • Parallel Coordinates Example
      • Ranged Dot Plot
      • Stem and Leaf Plot
      • Trail Marker

User Guide

  • Specifying Data in Altair
  • Encodings
  • Marks
  • Data Transformations
  • Selections: Building Blocks of Interactions
  • Top-Level Chart Configuration
  • Compound Charts: Layer, HConcat, VConcat, Repeat, Facet
  • Saving Altair Charts
  • Customizing Visualizations
  • Frequently Asked Questions
  • Display Troubleshooting
  • Altair Renderers
  • API Reference

Case Studies

  • Exploring Seattle Weather

Advanced Usage

  • Importing Vega & Vega-Lite Versions
  • Displaying Charts in Various Frontends
  • Customizing Renderers
  • Data transformers
Altair
  • Docs »
  • Example Gallery
  • View page source

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.

$ pip install vega_datasets

Simple Charts¶

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

Bar Charts¶

Bar Chart with Highlight Box Plot with Min/Max Whiskers Calculating Percentage of Total Candlestick Chart Diverging Stacked Bar Chart Error Bars showing Confidence Interval Gantt Chart Grouped Bar Chart Horizontal Aggregate Bar Chart Horizontal Stacked Bar Chart LayerChart with Bar and Tick Layered Bar Chart Layered Bar Chart with Line as Mean Layered Plot with Dual-Axis Normalized Stacked Bar Chart Simple Bar Chart with Labels Simple Highlighted Bar Chart Stacked Bar Chart Trellis Stacked Bar Chart

Line Charts¶

Line Chart with Layered Aggregates Line Chart with Percent axis Line chart with Confidence Interval Band Multi Series Line Chart Slope Graph Step Chart

Area Charts¶

Horizon Graph Interval Selection Example Layered Area Chart Normalized Stacked Area Chart Streamgraph Trellis Area Chart

Scatter Plots¶

Binned Scatterplot Bubble Plot Connected Scatterplot (Lines with Custom Paths) Dot Dash Plot Multifeature Scatter Plot Polynomial Fit Plot Scatter Matrix Simple Scatter Plot with Errorbars Simple Scatter Plot with Labels Table Bubble Plot (Github Punch Card) Trellis Scatter Plot

Histograms¶

Histogram with a Global Mean Overlay Layered Histogram Trellis Histogram

Maps¶

Choropleth Map Repeated Choropleth Map World Projections

Interactive Charts¶

Faceted Scatter Plot with Linked Brushing Interactive Average Interactive Chart with Cross-Highlight Interactive Crossfilter Interactive Rectangular Brush Multi-Line Highlight Multi-Line Tooltip Scatter Plot and Histogram with Interval Selection Selection Detail Example Selection Histogram Simple Interactive Colored Scatterplot

Case Studies¶

Anscombe's Quartet Becker's Barley Trellis Plot Cumulative Wikipedia Donations Falkensee Gapminder Bubble Plot Isotype Visualization Locations of US Airports London Tube Lines Natural Disasters One Dot Per Zipcode Seattle Weather Interactive Top K Letters U.S. state capitals overlayed on a map of the U.S US Population Over Time US Population Pyramid Over Time

Other Charts¶

Binned Heatmap Facetted Scatterplot with marginal histograms Layering text over a heatmap Multiple Marks Parallel Coordinates Example Ranged Dot Plot Stem and Leaf Plot Trail Marker
Next Previous

© Copyright 2016-2018, Altair Developers.

Built with Sphinx using a theme provided by Read the Docs.