Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 513 Bytes

map_without_label.md

File metadata and controls

19 lines (14 loc) · 513 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_series_opts(label_opts=opts.LabelOpts(is_show=False))
    .set_global_opts(title_opts=opts.TitleOpts(title="Map-不显示Label"))
    .render("map_without_label.html")
)
<iframe width="100%" height="800px" src="Map/map_without_label.html"></iframe>