Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

streamlit add chart

# Plotting matplotlib
import matplotlib.pyplot as plt

labels = ["a", "b", "c"]
sizes = [100, 200, 50]

fig, ax = plt.subplots(figsize=(10,10))
ax.pie(sizes, labels=labels, autopct="%1.1f%%")
ax.axis("equal")

st.pyplot(fig)
 
PREVIOUS NEXT
Tagged: #streamlit #add #chart
ADD COMMENT
Topic
Name
9+6 =