Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 561 Bytes

map_world.md

File metadata and controls

22 lines (17 loc) · 561 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.country, Faker.values())], "world")
    .set_series_opts(label_opts=opts.LabelOpts(is_show=False))
    .set_global_opts(
        title_opts=opts.TitleOpts(title="Map-世界地图"),
        visualmap_opts=opts.VisualMapOpts(max_=200),
    )
    .render("map_world.html")
)
<iframe width="100%" height="800px" src="Map/map_world.html"></iframe>