Gauge:仪表盘
node2:/root/fenxi#cat k4.py
from pyecharts.faker import Faker
from pyecharts import options as opts
from pyecharts.charts import Funnel, Page
from pyecharts import options as opts
from pyecharts.charts import Gauge, Page
def gauge_base() -> Gauge:
c = (
Gauge()
.add("", [("完成率", 66.6)])
.set_global_opts(title_opts=opts.TitleOpts(title="Gauge-基本示例"))
)
return c
gauge_base().render("k4.html")
node2:/root/fenxi#python3 k4.py