New Component: streamlit_apex_charts

Great, nice work.
This example is very beautiful.
a little change, it can support common chart types.

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.

4 Likes