明明在代码里写明了标题:
chart2 = Bar()
chart2.add_xaxis(daocha_total)
chart2.add_yaxis('道岔检查完成度', daocha_barvalue)
chart2.set_global_opts(
title_opts=opts.TitleOpts(title="道岔检查完成度"),
yaxis_opts=opts.AxisOpts(
axislabel_opts=opts.LabelOpts(
formatter="{value}%"
)
)
)
chart2.render(r"Task-progress-visualization-main\newfile\standingSystem\html\道岔检查完成度.html")
但是浏览器打开后,html文件还是显示Awesome-pyecharts