# st.area_chart

Source: https://docs.streamlit.io/develop/api-reference/charts/st.area_chart

* Function signature:

   ```python
   st.area_chart(data=None, *, x=None, y=None, x_label=None, y_label=None, color=None, stack=None, width="stretch", height="content", use_container_width=None, alt=None)
   ```

* Parameters:

   | name | type | default | description |
   |---|---|---|---|
   | data | Anything supported by st.dataframe |  | Data to be plotted. |
   | x | str or None |  | Column name or key associated to the x-axis data. If x is None (default), Streamlit uses the data index for the x-axis values. |
   | y | str, Sequence of str, or None |  | Column name(s) or key(s) associated to the y-axis data. If this is None (default), Streamlit draws the data of all remaining columns as data series. If this is a Sequence of strings, Streamlit draws several series on the same chart by melting your wide-format table into a long-format table behind the scenes. |
   | x_label | str or None |  | The label for the x-axis. If this is None (default), Streamlit will use the column name specified in x if available, or else no label will be displayed. |
   | y_label | str or None |  | The label for the y-axis. If this is None (default), Streamlit will use the column name(s) specified in y if available, or else no label will be displayed. |
   | color | str, tuple, Sequence of str, Sequence of tuple, or None | color | The color to use for different series in this chart. For an area chart with just 1 series, this can be:  None, to use the default color. A hex string like "#ffaa00" or "#ffaa0088". An RGB or RGBA tuple with the red, green, blue, and alpha components specified as ints from 0 to 255 or floats from 0.0 to 1.0. A built-in color name: "red", "orange", "yellow", "green", "blue", "violet", "gray"/"grey", or "primary". These map to theme colors that you can customize using theme.Color configuration options.  For an area chart with multiple series, where the dataframe is in long format (that is, y is None or just one column), this can be:  None, to use the default colors.  The name of a column in the dataset. Data points will be grouped into series of the same color based on the value of this column. In addition, if the values in this column match one of the color formats above (hex string or color tuple), then that color will be used. For example: if the dataset has 1000 rows, but this column only contains the values "adult", "child", and "baby", then those 1000 datapoints will be grouped into three series whose colors will be automatically selected from the default palette. But, if for the same 1000-row dataset, this column contained the values "#ffaa00", "#f0f", "#0000ff", then then those 1000 datapoints would still be grouped into 3 series, but their colors would be "#ffaa00", "#f0f", "#0000ff" this time around.   For an area chart with multiple series, where the dataframe is in wide format (that is, y is a Sequence of columns), this can be:  None, to use the default colors. A list of string colors or color tuples to be used for each of the series in the chart. This list should have the same length as the number of y values (e.g. color=["#fd0", "#f0f", "#04f"] for three lines). You can also use built-in color names in the list (e.g. color=["red", "blue", "green"]).  You can set the default colors in the theme.chartCategoricalColors configuration option. |
   | stack | bool, "normalize", "center", or None |  | Whether to stack the areas. If this is None (default), Streamlit uses Vega's default. Other values can be as follows:  True: The areas form a non-overlapping, additive stack within the chart. False: The areas overlap each other without stacking. "normalize": The areas are stacked and the total height is normalized to 100% of the height of the chart. "center": The areas are stacked and shifted to center their baseline, which creates a steamgraph. |
   | width | "stretch", "content", or int |  | The width of the chart element. This can be one of the following:  "stretch" (default): The width of the element matches the width of the parent container. "content": The width of the element matches the width of its content, but doesn't exceed the width of the parent container. An integer specifying the width in pixels: The element has a fixed width. If the specified width is greater than the width of the parent container, the width of the element matches the width of the parent container. |
   | height | "stretch", "content", or int | height | The height of the chart element. This can be one of the following:  "content" (default): The height of the element matches the height of its content. "stretch": The height of the element expands to fill the available vertical space in its parent container. When multiple elements with stretch height are in the same vertical container, they share the available vertical space evenly. In a fixed-height container, or a stretch container that fills one, the chart keeps no minimum height and can shrink to zero when the other elements fill the container. Use an integer height to keep the chart visible there. Otherwise, the chart uses its default height (350px at the default font size) and still grows to match a taller sibling. An integer specifying the height in pixels: The element has a fixed height. If the content is larger than the specified height, scrolling is enabled. |
   | use_container_width | bool or None | behavior | Whether to override the chart's native width with the width of the parent container. This can be one of the following:  None (default): Streamlit will use the chart's default behavior. True: Streamlit sets the width of the chart to match the width of the parent container. False: Streamlit sets the width of the chart to fit its contents according to the plotting library, up to the width of the parent container. |
   | alt | str or None | Vega | A description of the chart for screen readers and other assistive technologies. If this is None (default), the chart keeps its default Vega accessible name. An empty or whitespace-only string is treated the same as None and is logged so authors notice the dual meaning of alt="" across commands (decorative only on st.image / st.pyplot). This is a short description of the chart, not a full text alternative for dense graphics. |
