Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
level3-lesson24-diy2
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
7999fe28
authored
Mar 26, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
41ca6e12
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
216 additions
and
216 deletions
my_analysis.py
render.html
my_analysis.py
View file @
7999fe28
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
render.html
View file @
7999fe28
This diff is collapsed.
Click to expand it.
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