mestreamlit / pages /991_streamlit_apex_charts.py
yuanjie
update
6207b87
raw
history blame contribute delete
568 Bytes
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)
# https://discuss.streamlit.io/t/new-component-streamlit-apex-charts/18769/3