pyecharts common configuration

Data visualization pyecharts

Official Documents

init_opts common configuration

Setting the length and width

c=Map(init_opts=opts.InitOpts(width=wid,height=hei))

c.set_global_opts common attributes

Set Title

title_opts=opts.TitleOpts(title=a+"XXX")

All x-axis labels provided

c.set_global_opts(xaxis_opts=opts.AxisOpts(axislabel_opts=opts.LabelOpts(font_size=10,interval=0)))

Legend will stand up

c.set_global_opts(
            title_opts=opts.TitleOpts(title=""),
            datazoom_opts=opts.DataZoomOpts(),
            legend_opts=opts.LegendOpts(
                type_="scroll", pos_left="80%", orient="vertical"
            )
        )

Legend is set to only radio

legend_opts=opts.LegendOpts(selected_mode='single'),

Setting the x-axis and pulled

datazoom_opts=opts.DataZoomOpts() 

Guess you like

Origin www.cnblogs.com/yyjjtt/p/11287291.html