Commit 1595148e by BellCodeEditor

auto save

parent c0ec0e04
Showing with 11 additions and 2 deletions
......@@ -3,4 +3,13 @@ from pyecharts.charts import Line
test = ["第1次","第2次","第3次","第4次","第5次","第6次","第7次","第8次","第9次","第10次"]
student1 = [112, 110, 118, 124, 129, 132, 136, 139, 144, 143] # 聪聪
student2 = [128, 131, 132, 129, 130, 127, 129, 131, 132, 128] # 小杰
student3 = [143, 145, 140, 133, 134, 126, 121, 120, 114, 105] # 皮皮
\ No newline at end of file
student3 = [143, 145, 140, 133, 134, 126, 121, 120, 114, 105] # 皮皮
student4 = [147, 141, 149, 130, 137, 122, 120, 127, 111, 115] # 小虎
line = Line()
line.add_xaxis(test)
line.add_yaxis("聪聪", student1)
line.add_yaxis("小杰", student2)
line.add_yaxis("皮皮", student3)
line.add_yaxis("小虎", student4)
line.set_global_opts(title_opts={"text":"成绩表","subtext":"单位:分"})
line.render("zhexiantu.html")
\ No newline at end of file
This diff is collapsed. Click to expand it.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment