from pyecharts import options as opts
from pyecharts.charts import Geo
from pyecharts.faker import Faker
city=[("北京",600),("天津",4),("太原",700)]
c = (
Geo()
.add_schema(maptype="china")
.add("",city)
.set_series_opts(lable_opts=opts.LabelOpts(is_show=False))
.set_global_opts(
visualmap_opts=opts.VisualMapOpts(),
title_opts=opts.TitleOpts(title="我的足迹图",subtitle="Geo")
)
)
c.render_notebook()
11.pyecharts地图
最新推荐文章于 2022-07-02 22:22:53 发布