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
f9316fc7
authored
Sep 15, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
32412579
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
111.html
my_analysis.py
111.html
View file @
f9316fc7
...
@@ -7,11 +7,11 @@
...
@@ -7,11 +7,11 @@
</head>
</head>
<body>
<body>
<div
id=
"
117e298ac73840919cb27e27a8370db7
"
class=
"chart-container"
style=
"width:900px; height:500px;"
></div>
<div
id=
"
d2318041390e43d6a43040d895727152
"
class=
"chart-container"
style=
"width:900px; height:500px;"
></div>
<script>
<script>
var
chart_
117e298ac73840919cb27e27a8370db7
=
echarts
.
init
(
var
chart_
d2318041390e43d6a43040d895727152
=
echarts
.
init
(
document
.
getElementById
(
'
117e298ac73840919cb27e27a8370db7
'
),
'white'
,
{
renderer
:
'canvas'
});
document
.
getElementById
(
'
d2318041390e43d6a43040d895727152
'
),
'white'
,
{
renderer
:
'canvas'
});
var
option_
117e298ac73840919cb27e27a8370db7
=
{
var
option_
d2318041390e43d6a43040d895727152
=
{
"animation"
:
true
,
"animation"
:
true
,
"animationThreshold"
:
2000
,
"animationThreshold"
:
2000
,
"animationDuration"
:
1000
,
"animationDuration"
:
1000
,
...
@@ -357,7 +357,7 @@
...
@@ -357,7 +357,7 @@
"subtext"
:
"\u6b21\u6570\uff1a\u6210\u7ee9"
"subtext"
:
"\u6b21\u6570\uff1a\u6210\u7ee9"
}
}
};
};
chart_
117e298ac73840919cb27e27a8370db7
.
setOption
(
option_117e298ac73840919cb27e27a8370db7
);
chart_
d2318041390e43d6a43040d895727152
.
setOption
(
option_d2318041390e43d6a43040d895727152
);
</script>
</script>
</body>
</body>
</html>
</html>
my_analysis.py
View file @
f9316fc7
from
pyecharts.charts
import
Lin
e
from
pyecharts.charts
import
Pi
e
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
=
Lin
e
()
pie
=
Pi
e
()
lin
e
.
add_xaxis
(
test
)
pi
e
.
add_xaxis
(
test
)
lin
e
.
add_yaxis
(
"聪聪成绩"
,
student1
)
pi
e
.
add_yaxis
(
"聪聪成绩"
,
student1
)
lin
e
.
add_yaxis
(
"小杰成绩"
,
student2
)
pi
e
.
add_yaxis
(
"小杰成绩"
,
student2
)
lin
e
.
add_yaxis
(
"皮皮成绩"
,
student3
)
pi
e
.
add_yaxis
(
"皮皮成绩"
,
student3
)
lin
e
.
set_global_opts
(
title_opts
=
pi
e
.
set_global_opts
(
title_opts
=
{
"text"
:
"考试成绩"
,
"subtext"
:
"次数:成绩"
})
{
"text"
:
"考试成绩"
,
"subtext"
:
"次数:成绩"
})
lin
e
.
render
(
"111.html"
)
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