Answers for "streamlit add chart"

0

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)
Posted by: Guest on February-15-2022

Python Answers by Framework

Browse Popular Code Answers by Language