How to change the color, horizontal axis identification direction, display bar data number of st.bar_chart?
st.bar_chart
is a convenience wrapper around st.altair_chart
, for times when you want to make a quick chart just to observe your data.
When you have more complex situations, such as customizing the color and axes, the expectation is that you would use st.altair_chart
to customize to your exact needs.
https://docs.streamlit.io/en/stable/api.html?highlight=bar_chart#streamlit.bar_chart
https://docs.streamlit.io/en/stable/api.html?highlight=bar_chart#streamlit.altair_chart
You can find many examples of customizing bar charts in Altair’s documentation and gallery:
https://altair-viz.github.io/gallery/#bar-charts
Best,
Snehan
OK, I will try different method, thank you.