🔥AI副业赚钱星球

点击下面图片查看

郭震AI

149

编辑日期: 2024-11-28 文章阅读:

@author jackzhenguo
@desc
@tag
@version 
@date 2020/02/16
import random
from pyecharts import options as opts
from pyecharts.charts import Page, Polar

def polar_scatter0() -> Polar:
    data = [(alpha, random.randint(1, 100)) for alpha in range(101)] # r = random.randint(1, 100)
    print(data)
    c = (
        Polar()
        .add("", data, type_="bar", label_opts=opts.LabelOpts(is_show=False))
        .set_global_opts(title_opts=opts.TitleOpts(title="Polar"))
    )
    return c

polar_scatter0().render('./img/polar.html')

上一个例子 下一个例子

京ICP备20031037号-1