赞
踩
- from pyecharts import options as opts
- from pyecharts.charts import Map
- from pyecharts.faker import Faker
-
- c={
- Map()
- .add('中国',[list(z) for z in zip(Faker.provinces,Faker.values())],"china")
- .set_global_opts(title_opts=opts.TitleOpts(title="map"))
- .render("map.html")
- }
实现结果如下:
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。