Not like we don’t have enough charting options in streamlit
But I just liked the material-ui like style of apex charts.
Again the charts are fully customizable and work with data frames just like native streamlit charts.
Excited to see what the community builds with this.
import numpy as np
import pandas as pd
import streamlit as st
from streamlit_apex_charts import line_chart, bar_chart, pie_chart, area_chart, radar_chart
st.set_page_config(layout="wide")
df = pd.DataFrame(np.random.randint(1,10,size=(10, 3)),columns=['Apple', 'Microsoft', 'Google'])
line_chart('Line chart',df)
c1, c2 = st.columns(2)
with c1:
bar_chart('Bar chart',df)
pie_chart('Pie chart',df)
with c2:
area_chart('Area chart',df)
radar_chart('Radar chart',df)
If it also can support other chart types will be more fine, such as heatmap, gauge, treemap and etc.
And if have an argument like “label_show=True” to let the label show or not, legend_positon=Top, Bottom, Left, Right and more arguments.
Thanks for the suggestions @BeyondMyself . this is a work in progress and I’ll continue to add more and more chart types, as far as hiding the label is concerned you can just pass an empty string in the title
These useful widgets were removed from component?
Yesterday, I can see them, today after I updated, I can not see them any more?
Can you recover them?
Thank you.
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.