st.column_config.BarChartColumn
Configure a bar chart column in st.dataframe or st.data_editor.
Cells need to contain a list of numbers. Chart columns are not editable at the moment. This command needs to be used in the column_config parameter of st.dataframe or st.data_editor.
| Function signature[source] | |
|---|---|
st.column_config.BarChartColumn(label=None, *, width=None, help=None, y_min=None, y_max=None) | |
| Parameters | |
label (str or None) | The label shown at the top of the column. If None (default), the column name is used. |
width ("small", "medium", "large", or None) | The display width of the column. Can be one of “small”, “medium”, or “large”. If None (default), the column will be sized to fit the cell contents. |
help (str or None) | An optional tooltip that gets displayed when hovering over the column label. |
y_min (int, float, or None) | The minimum value on the y-axis for all cells in the column. If None (default), every cell will use the minimum of its data. |
y_max (int, float, or None) | The maximum value on the y-axis for all cells in the column. If None (default), every cell will use the maximum of its data. |
Examples
Python
Still have questions?
Our forums are full of helpful information and Streamlit experts.
