Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 520 Bytes

map_visualmap.md

File metadata and controls

21 lines (16 loc) · 520 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-VisualMap(连续型)"),
        visualmap_opts=opts.VisualMapOpts(max_=200),
    )
    .render("map_visualmap.html")
)
<iframe width="100%" height="800px" src="Map/map_visualmap.html"></iframe>