Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 430 Bytes

map_base.md

File metadata and controls

18 lines (13 loc) · 430 Bytes

pyecharts 代码 / 效果

from pyecharts import options as opts
from pyecharts.charts import Map
from pyecharts.faker import Faker

c = (
    Map()
    .add("商家A", [list(z) for z in zip(Faker.provinces, Faker.values())], "china")
    .set_global_opts(title_opts=opts.TitleOpts(title="Map-基本示例"))
    .render("map_base.html")
)
<iframe width="100%" height="800px" src="Map/map_base.html"></iframe>