Commit 052aaa4e by BellCodeEditor

save project

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