Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
level3-lesson24-diy3
This project
Loading...
Sign in
Toggle navigation
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
Commit
b9467e64
authored
Oct 19, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
913bb7b3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
my_analysis.py
my_analysis.py
View file @
b9467e64
from
pyecharts.charts
import
Lin
e
from
pyecharts.charts
import
Pi
e
test
=
[
"第1次"
,
"第2次"
,
"第3次"
,
"第4次"
,
"第5次"
,
"第6次"
,
"第7次"
,
"第8次"
,
"第9次"
,
"第10次"
]
student1
=
[
112
,
110
,
118
,
124
,
129
,
132
,
136
,
139
,
144
,
143
]
# 聪聪
student2
=
[
128
,
131
,
132
,
129
,
130
,
127
,
129
,
131
,
132
,
128
]
# 小杰
student3
=
[
143
,
145
,
140
,
133
,
134
,
126
,
121
,
120
,
114
,
105
]
# 皮皮
line
=
Lin
e
()
lin
e
.
add_xaxis
(
test
)
lin
e
.
add_yaxis
(
"聪聪的成绩"
,
student1
)
lin
e
.
add_yaxis
(
"小杰的成绩"
,
student2
)
lin
e
.
add_yaxis
(
"皮皮的成绩"
,
student3
)
lin
e
.
set_global_opts
(
title_opts
=
{
"text"
:
"考试成绩"
,
"subtext"
:
"次数:毫米"
})
lin
e
.
render
(
"111.html"
)
pie
=
Pi
e
()
pi
e
.
add_xaxis
(
test
)
pi
e
.
add_yaxis
(
"聪聪的成绩"
,
student1
)
pi
e
.
add_yaxis
(
"小杰的成绩"
,
student2
)
pi
e
.
add_yaxis
(
"皮皮的成绩"
,
student3
)
pi
e
.
set_global_opts
(
title_opts
=
{
"text"
:
"考试成绩"
,
"subtext"
:
"次数:毫米"
})
pi
e
.
render
(
"111.html"
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment