from pyecharts.components import Table
from pyecharts.options import ComponentTitleOpts
table = Table()
headers = ["部门", "5月得分", "本月扣分", "本月加分", "本月得分"]
rows = [
["SWD-SI", 103, 0, 2, 105],
["SWD-GSW", 101, 0, 4, 105],
["CWCV", 100.5, 4, 8, 104.5],
["SYS-XSE", 100, 0, 4, 104],
["SWD-RSW", 100, 0, 2, 102],
["PA-CPA", 100, 0, 2, 102],
["PA-RPA", 100, 0, 2, 102],
["PRODM", 97, 0, 2, 99],
["PM", 92, 0, 6, 98],
["SYS-SSE", 100, 6, 2, 96],
["SYS-SE", 95.5, 8, 5.5, 93],
["DCOE", 93, 4, 4, 93],
["V&V", 83.5, 14, 11, 80.5]
]
table.add(headers, rows, attributes={
})
table.set_global_opts(
title_opts=ComponentTitleOpts(title="各部门质量信用积分及排名")
)
table.render("table_base1.html")
2222222
最新推荐文章于 2024-08-26 18:56:03 发布