mestreamlit / pages /995_streamlit_echarts.py
yuanjie
update
a18878f
raw
history blame
582 Bytes
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Project : Python.
# @File : 995_streamlit_echarts
# @Time : 2022/10/17 下午12:11
# @Author : yuanjie
# @WeChat : meutils
# @Software : PyCharm
# @Description :
from streamlit_echarts import st_echarts
options = {
"xAxis": {
"type": "category",
"data": ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
},
"yAxis": {"type": "value"},
"series": [
{"data": [820, 932, 901, 934, 1290, 1330, 1320], "type": "line"}
],
}
st_echarts(options=options)