Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 593 Bytes

polar_effectscatter.md

File metadata and controls

27 lines (20 loc) · 593 Bytes

pyecharts 代码 / 效果

import random

from pyecharts import options as opts
from pyecharts.charts import Polar


data = [(i, random.randint(1, 100)) for i in range(10)]
c = (
    Polar()
    .add(
        "",
        data,
        type_="effectScatter",
        effect_opts=opts.EffectOpts(scale=10, period=5),
        label_opts=opts.LabelOpts(is_show=False),
    )
    .set_global_opts(title_opts=opts.TitleOpts(title="Polar-EffectScatter"))
    .render("polar_effectscatter.html")
)
<iframe width="100%" height="800px" src="Polar/polar_effectscatter.html"></iframe>