set_global_opts全局设置

使用 options 配置项,在 pyecharts 中,一切皆 Options。

.set_global_opts(title_opts=opts.TitleOpts(title="主标题", subtitle="副标题"))

    def set_global_opts(
        self,
        title_opts: types.Title = opts.TitleOpts(),
        legend_opts: types.Legend = opts.LegendOpts(),
        tooltip_opts: types.Tooltip = None,
        toolbox_opts: types.Toolbox = None,
        brush_opts: types.Brush = None,
        xaxis_opts: types.Axis = None,
        yaxis_opts: types.Axis = None,
        visualmap_opts: types.VisualMap = None,
        datazoom_opts: types.DataZoom = None,
        graphic_opts: types.Graphic = None,
        axispointer_opts: types.AxisPointer = None,
    ):
    
    

from pyecharts.charts import Bar

from pyecharts import options as opts
from pyecharts.charts import Funnel, P

猜你喜欢

转载自blog.csdn.net/zhaoyangjian724/article/details/112116435
今日推荐