Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

Administrator / level3-lesson24-diy3

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • level3-lesson24-diy3
  • my_analysis.py
Find file
BlameHistoryPermalink
  • BellCodeEditor's avatar
    auto save · f575c4e3
    BellCodeEditor committed 10 months ago
    f575c4e3
my_analysis.py 657 Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14
from pyecharts.charts import Line
test = ["第1次","第2次","第3次","第4次","第5次","第6次","第7次","第8次","第9次","第10次"]
student1 = [5, 10, 88, 24, 89, 132, 136, 139, 144, 143]
student2 = [8, 31, 32, 29, 90, 127, 129, 131, 132, 128] 
student3 = [3, 45, 40, 33, 134, 126, 121, 120, 114, 105] 
student4=[1,29,56,34,59,24,70,100,89,130] 
bbbb=Line()
bbbb.add_xaxis(test)
bbbb.add_yaxis("聪聪分数",student1)
bbbb.add_yaxis("小杰分数",student2)
bbbb.add_yaxis("皮皮分数",student3)
bbbb.add_yaxis("憨批分数",student4)
bbbb.set_global_opts(title_opts={"text":"打怪成绩","subtext":"单位:个"})
bbbb.render("1234.html")