Commit 052aaa4e by BellCodeEditor

save project

parent 88695114
Showing with 10 additions and 9 deletions
from pyecharts.charts import Bar from pyecharts.charts import Bar
subjects = ["珍珍","聪聪","小智","波奇"] subjects = ["1","2","3","4","5","6","7","8","9","10"]
scores1 = [92,95,82,88] student1 = [112,110,118,124,129,132,136,139,144,143]
scores2 =[95,79,93,90] student1 = [128,131,132,129,130,127,129,131,132,128]
bar = charts.Bar() student3 = [128,134,116,141,122,132,142,124,125,135]
bar.add_xaxis(subjects) line=Line()
bar.add_yaxis("期末成绩",scores1,width=40) line.add_xaxis(test)
bar.add_yaxis("期末成绩",scores2,width=40) line.add_yaxis("聪",student1)
bar.render('asd.html') line.add_yaxis("杰",student2)
\ No newline at end of file line.add_yaxis("皮",student1)
\ 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