.. This document is auto-generated by the altair-gallery extension. Do not modify directly. .. _gallery_normalized_stacked_area_chart: Normalized Stacked Area Chart ----------------------------- This example shows how to make a normalized stacked area chart. .. altair-plot:: :code-below: import altair as alt from vega_datasets import data source = data.iowa_electricity() alt.Chart(source).mark_area().encode( x="year:T", y=alt.Y("net_generation:Q", stack="normalize"), color="source:N" ) .. toctree:: :hidden: