Commit 355f4def by BellCodeEditor

auto save

parent 3fc4c750
Showing with 9 additions and 9 deletions
from pyecharts.charts import Line from pyecharts.charts import Pie
line=Line() pie=Pie()
test = ["第1次","第2次","第3次","第4次","第5次","第6次","第7次","第8次","第9次","第10次"] test = ["第1次","第2次","第3次","第4次","第5次","第6次","第7次","第8次","第9次","第10次"]
student1 = [112, 110, 118, 124, 129, 132, 136, 139, 144, 143] # 聪聪 student1 = [112, 110, 118, 124, 129, 132, 136, 139, 144, 143] # 聪聪
student2 = [128, 131, 132, 129, 130, 127, 129, 131, 132, 128] # 小杰 student2 = [128, 131, 132, 129, 130, 127, 129, 131, 132, 128] # 小杰
student3 = [143, 145, 140, 133, 134, 126, 121, 120, 114, 105] # 皮皮 student3 = [143, 145, 140, 133, 134, 126, 121, 120, 114, 105] # 皮皮
line.add_xaxis(test) pie.add_xaxis(test)
line.add_yaxis("y1",student1) pie.add_yaxis("y1",student1)
line.add_yaxis("y2",student2) pie.add_yaxis("y2",student2)
line.add_yaxis("y3",student3) pie.add_yaxis("y3",student3)
line.set_global_opts(title_opts={"text":"一","subtext":"二"}) pie.set_global_opts(title_opts={"text":"一","subtext":"二"})
line.render("1.html") pie.render("1.html")
\ No newline at end of file \ 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