Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 635 Bytes

geo_effectscatter.md

File metadata and controls

25 lines (20 loc) · 635 Bytes

pyecharts 代码 / 效果

from pyecharts import options as opts
from pyecharts.charts import Geo
from pyecharts.faker import Faker
from pyecharts.globals import ChartType

c = (
    Geo()
    .add_schema(maptype="china")
    .add(
        "geo",
        [list(z) for z in zip(Faker.provinces, Faker.values())],
        type_=ChartType.EFFECT_SCATTER,
    )
    .set_series_opts(label_opts=opts.LabelOpts(is_show=False))
    .set_global_opts(title_opts=opts.TitleOpts(title="Geo-EffectScatter"))
    .render("geo_effectscatter.html")
)
<iframe width="100%" height="800px" src="Geo/geo_effectscatter.html"></iframe>