.. This document is auto-generated by the altair-gallery extension. Do not modify directly.
.. _example-gallery:
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 `_.
.. code-block:: none
$ pip install vega_datasets
.. _gallery-category-Simple Charts:
Simple Charts
~~~~~~~~~~~~~
.. raw:: html
Simple Bar Chart
Simple Heatmap
Simple Histogram
Simple Line Chart
Simple Scatter Plot with Tooltips
Simple Stacked Area Chart
Simple Strip Plot
.. toctree::
:hidden:
simple_bar_chart
simple_heatmap
simple_histogram
simple_line_chart
scatter_tooltips
simple_stacked_area_chart
strip_plot
.. _gallery-category-Bar Charts:
Bar Charts
~~~~~~~~~~
.. raw:: html
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
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
.. toctree::
:hidden:
bar_chart_with_highlighted_bar
bar_chart_with_labels
bar_chart_with_mean_line
bar_and_line_with_dual_axis
bar_chart_with_negatives
bar_with_rolling_mean
bar_rounded
layered_chart_bar_mark
percentage_of_total
bar_chart_trellis_compact
diverging_stacked_bar_chart
grouped_bar_chart
grouped_bar_chart_with_error_bars
bar_chart_horizontal
grouped_bar_chart_horizontal
horizontal_stacked_bar_chart
layered_bar_chart
normalized_stacked_bar_chart
bar_chart_sorted
stacked_bar_chart
stacked_bar_chart_sorted_segments
stacked_bar_chart_with_text
trellis_stacked_bar_chart
.. _gallery-category-Line Charts:
Line Charts
~~~~~~~~~~~
.. raw:: html
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
.. toctree::
:hidden:
bump_chart
filled_step_chart
line_with_ci
line_chart_with_cumsum
layer_line_color_rule
line_with_log_scale
line_percent
line_chart_with_points
line_chart_with_generator
trail_marker
line_chart_with_datum
line_chart_with_color_datum
multi_series_line
slope_graph
step_chart
.. _gallery-category-Area Charts:
Area Charts
~~~~~~~~~~~
.. raw:: html
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
.. toctree::
:hidden:
area_chart_gradient
cumulative_count_chart
density_facet
horizon_graph
interval_selection
layered_area_chart
normalized_stacked_area_chart
density_stack
streamgraph
trellis_area
trellis_area_sort_array
.. _gallery-category-Circular Plots:
Circular Plots
~~~~~~~~~~~~~~
.. raw:: html
Donut Chart
Pacman Chart
Pie Chart
Pie Chart with Labels
Radial Chart
.. toctree::
:hidden:
donut_chart
pacman_chart
pie_chart
pie_chart_with_labels
radial_chart
.. _gallery-category-Scatter Plots:
Scatter Plots
~~~~~~~~~~~~~
.. raw:: html
Binned Scatterplot
Brushing Scatter Plot to show data on a table
Bubble Plot
Connected Scatterplot (Lines with Custom Paths)
Dot Dash Plot
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
.. toctree::
:hidden:
binned_scatterplot
scatter_linked_table
bubble_plot
connected_scatterplot
dot_dash_plot
multifeature_scatter_plot
poly_fit_regression
scatter_qq
scatter_matrix
scatter_href
scatter_with_loess
scatter_with_minimap
scatter_with_rolling_mean
simple_scatter_with_errorbars
scatter_with_labels
stripplot
table_bubble_plot_github
trellis_scatter_plot
wind_vector_map
.. _gallery-category-Histograms:
Histograms
~~~~~~~~~~
.. raw:: html
Histogram with Responsive Bins
Histogram with a Global Mean Overlay
Layered Histogram
Trellis Histogram
.. toctree::
:hidden:
histogram_responsive
histogram_with_a_global_mean_overlay
layered_histogram
trellis_histogram
.. _gallery-category-Maps:
Maps
~~~~
.. raw:: html
Choropleth Map
Locations of US Airports
Repeated Choropleth Map
US Income by State: Wrapped Facet
World Map
World Projections
.. toctree::
:hidden:
choropleth
airports_count
choropleth_repeat
us_incomebrackets_by_state_facet
world_map
world_projections
.. _gallery-category-Interactive Charts:
Interactive Charts
~~~~~~~~~~~~~~~~~~
.. raw:: html
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
Using Selection Interval with mark_area
.. toctree::
:hidden:
selection_layer_bar_month
interactive_cross_highlight
interactive_layered_crossfilter
interactive_legend
interactive_brush
scatter_with_layered_histogram
multiline_highlight
multiline_tooltip
scatter_linked_brush
multiple_interactions
scatter_with_histogram
select_detail
selection_histogram
interactive_scatter_plot
select_mark_area
.. _gallery-category-Case Studies:
Case Studies
~~~~~~~~~~~~
.. raw:: html
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
.. toctree::
:hidden:
anscombe_plot
co2_concentration
beckers_barley_trellis_plot
airport_connections
cumulative_wiki_donations
falkensee
gapminder_bubble_plot
iowa_electricity
isotype
isotype_emoji
airports
london_tube
natural_disasters
one_dot_per_zipcode
weather_heatmap
seattle_weather_interactive
us_employment
top_k_items
top_k_letters
top_k_with_others
us_state_capitals
us_population_over_time
us_population_pyramid_over_time
us_population_over_time_facet
wheat_wages
window_rank
.. _gallery-category-Other Charts:
Other Charts
~~~~~~~~~~~~
.. raw:: html
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
.. toctree::
:hidden:
bar_chart_with_highlighted_segment
beckers_barley_wrapped_facet
binned_heatmap
boxplot
candlestick_chart
comet_chart
errorbars_with_std
errorbars_with_ci
scatter_marginal_hist
gantt_chart
hexbins
image_tooltip
isotype_grid
layered_chart_with_dual_axis
multiple_marks
normed_parallel_coordinates
parallel_coordinates
pyramid
ranged_dot_plot
ridgeline_plot
sorted_error_bars_with_ci
stem_and_leaf
layered_heatmap_text
violin_plot
wilkinson-dot-plot