Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 429 Bytes

line_step.md

File metadata and controls

19 lines (14 loc) · 429 Bytes

pyecharts 代码 / 效果

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

c = (
    Line()
    .add_xaxis(Faker.choose())
    .add_yaxis("商家A", Faker.values(), is_step=True)
    .set_global_opts(title_opts=opts.TitleOpts(title="Line-阶梯图"))
    .render("line_step.html")
)
<iframe width="100%" height="800px" src="Line/line_step.html"></iframe>