Commit 1e3fb6c1 by BellCodeEditor

save project

parent 5cef35e9
Showing with 13 additions and 6 deletions
from pyecharts.charts import Bar from pyecharts.charts import Line
test=["第1名","第2次","第3名","第4名","第5名","第6名","第7名","第8名","第9名","第10名"]
subjects = ["浈浈", "聪聪", "小智", "波奇"] student1=[0,0,0,0,0,0,0,0,0,0]
scores1 = [92, 95, 82, 88] # 期中成绩 student2=[0,0,0,0,0,0,0,0,0,0]
scores2 = [95, 79, 93, 90] # 期末成绩 student3=[0,0,0,0,0,0,0,0,0,0]
\ No newline at end of file line=Line()
line.add_xaxis(test)
line.add_yaxis("聪聪",student1)
line.add_yaxis("小姐",student2)
line.add_yaxis("屁屁",student3)
line.set_global_opts(title_opts={"text":"成绩走势图","subtext":"高254班数学"})
line.render("analysis.html")
\ No newline at end of file
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