Streamlit's built-in visualization options
For the rest of this chapter, we're going to run through the rest of the Streamlit visualization options, which are Plotly, Matplotlib, Seaborn, Bokeh, Altair, and PyDeck.
Plotly
Plotly is an interactive visualization library that many data scientists use for visualizing data in Jupyter, in the browser locally, or even hosting these graphs to be viewed on a platform for visualizations and dashboards created by the Plotly team called Dash. This library is very similar to Streamlit in its intent and is primarily used for internal or external dashboards (hence, the name Dash).
Streamlit allows us to call plotly
graphs from within Streamlit apps using the st.plotly_chart()
function, which makes it a breeze to port any Plotly or Dash dashboards. We'll test this out by making a histogram of the height of the trees in SF, essentially the same graph that we've made before. The following code makes our Plotly...