Yes certainly, there are several options that you can use to display charts in your Streamlit app. st.write although is a magic command but it is primarily for displaying text.
You can use of several Streamlit commands for displaying charts in your Streamlit app in this Streamlit Docs page on Chart elements.
The easiest is to use Streamlit’s built-in st.bar_chart to display the bar chart.
Hi i am trying to experiment as well with langchain agent and charts based on results. Can you please give some guidelines how you achieved this? Any idea how to draw a chart from database results when using SQLDatabaseChain?