Commit 7999fe28 by BellCodeEditor

save project

parent 41ca6e12
Showing with 216 additions and 216 deletions
from pyecharts.charts import Bar
name = ["浈浈", "聪聪", "小智", "波奇"]
s1 = [92, 95, 82, 88] # 期中成绩
s2 = [95, 79, 93, 90] # 期末成绩
s3 = [55, 89, 33, 10]
s4 = [65, 73, 13, 50]
bar = Bar()
bar.add_xaxis(name)
bar.add_yaxis('七种成鸡',s1,bar_width=20)
bar.add_yaxis('七摸成鸡',s2,bar_width=20)
bar.add_yaxis('七tian==成鸡',s3,bar_width=20)
bar.add_yaxis('七askdja成鸡',s4,bar_width=20)
bar.render()
from pyecharts.charts import Line
test = ["第1次","第2次","第3次","第4次","第5次","第6次","第7次","第8次","第9次","第10次"]
s1 = [112, 110, 118, 124, 129, 132, 136, 139, 144, 143] # 聪聪
s2 = [128, 131, 132, 129, 130, 127, 129, 131, 132, 128] # 小杰
s3 = [143, 145, 140, 133, 134, 126, 121, 120, 114, 105] # 皮皮
line=Line()
line.add_xaxis(test)
line.add_yaxis('',s1)
line.add_yaxis('',s2)
line.add_yaxis('',s3)
line.render()
\ 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