Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 647 Bytes

polar_angleaxis.md

File metadata and controls

21 lines (16 loc) · 647 Bytes

pyecharts 代码 / 效果

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

c = (
    Polar()
    .add_schema(angleaxis_opts=opts.AngleAxisOpts(data=Faker.week, type_="category"))
    .add("A", [1, 2, 3, 4, 3, 5, 1], type_="bar", stack="stack0")
    .add("B", [2, 4, 6, 1, 2, 3, 1], type_="bar", stack="stack0")
    .add("C", [1, 2, 3, 4, 1, 2, 5], type_="bar", stack="stack0")
    .set_global_opts(title_opts=opts.TitleOpts(title="Polar-AngleAxis"))
    .render("polar_angleaxis.html")
)
<iframe width="100%" height="800px" src="Polar/polar_angleaxis.html"></iframe>