Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 597 Bytes

scatter_visualmap_size.md

File metadata and controls

23 lines (18 loc) · 597 Bytes

pyecharts 代码 / 效果

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

c = (
    Scatter()
    .add_xaxis(Faker.choose())
    .add_yaxis("商家A", Faker.values())
    .add_yaxis("商家B", Faker.values())
    .set_global_opts(
        title_opts=opts.TitleOpts(title="Scatter-VisualMap(Size)"),
        visualmap_opts=opts.VisualMapOpts(type_="size", max_=150, min_=20),
    )
    .render("scatter_visualmap_size.html")
)
<iframe width="100%" height="800px" src="Scatter/scatter_visualmap_size.html"></iframe>