pyecharts绘图步骤及添加全局和系列配置项

from pyecharts.charts import Bar

from pyecharts import options as opts

from pyecharts.globals import ThemeType

bar = (

Bar(init_opts=opts.InitOpts( ))

.add_xaxis(["语文","数学","英语","物理 "])

.add_yaxis("chengji",[70,50,90,89])

.set_global_opts(title_opts=opts.TitleOpts( ),

                legend_opts=opts.LegendOpts( ),

                xaxis_opts=opts.AxisOpts( )

                 )

.set_series_opts(label_opts=opts.LabelOpts( ))

)

bar.render("1.html")

你可能感兴趣的:(可视化,python,开发语言)