Commit 42c89fbd by BellCodeEditor

auto save

parent 3a85eb78
Showing with 103 additions and 3 deletions
from pyecharts.charts import Bar from pyecharts.charts import Bar
bar=Bar() bar=Bar()
subjects = ["浈浈", "聪聪", "小智", "波奇"]
scores1 = [92, 95, 82, 88] # 期中成绩
scores2 = [95, 79, 93, 90] # 期末成绩
bar.add_xaxis(subjects) bar.add_xaxis(subjects)
bar.add_yaxis('期中',scores1,bar_width=40) bar.add_yaxis('期中',scores1,bar_width=40)
bar.add_yaxis('期末',scores2,bar_width=40) bar.add_yaxis('期末',scores2,bar_width=40)
......
from pyecharts.charts import Bar
import csv
bar=Bar()
bar.add_xaxis(subjects)
bar.add_yaxis('期中',scores1,bar_width=40)
bar.add_yaxis('期末',scores2,bar_width=40)
bar.render()
姓名,语文,数学,英语,,,
姓名,语文,数学,英语,,,
张三,27 ,94 ,51 ,,,
李四,76 ,96 ,0 ,,,
王五,67 ,45 ,80 ,,,
robin,34 ,88 ,42 ,,,
tim,2 ,47 ,58 ,,,
tom,42 ,68 ,15 ,,,
rose,93 ,99 ,3 ,,,
lisa,68 ,83 ,17 ,,,
role,14 ,77 ,64 ,,,
tone,58 ,87 ,56 ,,,
lone,65 ,17 ,42 ,,,
kim,80 ,51 ,33 ,,,
lola,4 ,57 ,79 ,,,
lady gaga,17 ,93 ,45 ,,,
black,6 ,17 ,93 ,,,
write,35 ,83 ,68 ,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
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