Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 640 Bytes

149.md

File metadata and controls

28 lines (23 loc) · 640 Bytes
@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')
[上一个例子](148.md) [下一个例子](150.md)