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
6866ae85
authored
Jun 23, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
661d0a86
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
42 deletions
analysis.html
my_analysis.py
analysis.html
View file @
6866ae85
...
@@ -7,11 +7,11 @@
...
@@ -7,11 +7,11 @@
</head>
</head>
<body>
<body>
<div
id=
"
25bfdeb8c1bc49fc934b833002987029
"
class=
"chart-container"
style=
"width:900px; height:500px;"
></div>
<div
id=
"
1ca6d407151d41f79c7a5b6545978a4c
"
class=
"chart-container"
style=
"width:900px; height:500px;"
></div>
<script>
<script>
var
chart_
25bfdeb8c1bc49fc934b833002987029
=
echarts
.
init
(
var
chart_
1ca6d407151d41f79c7a5b6545978a4c
=
echarts
.
init
(
document
.
getElementById
(
'
25bfdeb8c1bc49fc934b833002987029
'
),
'white'
,
{
renderer
:
'canvas'
});
document
.
getElementById
(
'
1ca6d407151d41f79c7a5b6545978a4c
'
),
'white'
,
{
renderer
:
'canvas'
});
var
option_
25bfdeb8c1bc49fc934b833002987029
=
{
var
option_
1ca6d407151d41f79c7a5b6545978a4c
=
{
"animation"
:
true
,
"animation"
:
true
,
"animationThreshold"
:
2000
,
"animationThreshold"
:
2000
,
"animationDuration"
:
1000
,
"animationDuration"
:
1000
,
...
@@ -59,43 +59,43 @@
...
@@ -59,43 +59,43 @@
"data"
:
[
"data"
:
[
[
[
"\u7b2c1\u6b21"
,
"\u7b2c1\u6b21"
,
89
75
],
],
[
[
"\u7b2c2\u6b21"
,
"\u7b2c2\u6b21"
,
10
75
],
],
[
[
"\u7b2c3\u6b21"
,
"\u7b2c3\u6b21"
,
7
8
7
5
],
],
[
[
"\u7b2c4\u6b21"
,
"\u7b2c4\u6b21"
,
23
75
],
],
[
[
"\u7b2c5\u6b21"
,
"\u7b2c5\u6b21"
,
129
75
],
],
[
[
"\u7b2c6\u6b21"
,
"\u7b2c6\u6b21"
,
32
75
],
],
[
[
"\u7b2c7\u6b21"
,
"\u7b2c7\u6b21"
,
86
75
],
],
[
[
"\u7b2c8\u6b21"
,
"\u7b2c8\u6b21"
,
4
5
7
5
],
],
[
[
"\u7b2c9\u6b21"
,
"\u7b2c9\u6b21"
,
84
75
],
],
[
[
"\u7b2c10\u6b21"
,
"\u7b2c10\u6b21"
,
13
75
]
]
],
],
"hoverAnimation"
:
true
,
"hoverAnimation"
:
true
,
...
@@ -119,7 +119,7 @@
...
@@ -119,7 +119,7 @@
},
},
{
{
"type"
:
"line"
,
"type"
:
"line"
,
"name"
:
"\u5c0f\u
6770
"
,
"name"
:
"\u5c0f\u
8d1d
"
,
"connectNulls"
:
false
,
"connectNulls"
:
false
,
"symbolSize"
:
4
,
"symbolSize"
:
4
,
"showSymbol"
:
true
,
"showSymbol"
:
true
,
...
@@ -129,43 +129,43 @@
...
@@ -129,43 +129,43 @@
"data"
:
[
"data"
:
[
[
[
"\u7b2c1\u6b21"
,
"\u7b2c1\u6b21"
,
1
2
1
50
],
],
[
[
"\u7b2c2\u6b21"
,
"\u7b2c2\u6b21"
,
1
13
1
50
],
],
[
[
"\u7b2c3\u6b21"
,
"\u7b2c3\u6b21"
,
1
2
1
50
],
],
[
[
"\u7b2c4\u6b21"
,
"\u7b2c4\u6b21"
,
1
12
1
50
],
],
[
[
"\u7b2c5\u6b21"
,
"\u7b2c5\u6b21"
,
1
3
1
50
],
],
[
[
"\u7b2c6\u6b21"
,
"\u7b2c6\u6b21"
,
1
12
1
50
],
],
[
[
"\u7b2c7\u6b21"
,
"\u7b2c7\u6b21"
,
1
2
1
50
],
],
[
[
"\u7b2c8\u6b21"
,
"\u7b2c8\u6b21"
,
1
13
1
50
],
],
[
[
"\u7b2c9\u6b21"
,
"\u7b2c9\u6b21"
,
1
3
1
50
],
],
[
[
"\u7b2c10\u6b21"
,
"\u7b2c10\u6b21"
,
1
22
1
50
]
]
],
],
"hoverAnimation"
:
true
,
"hoverAnimation"
:
true
,
...
@@ -199,43 +199,43 @@
...
@@ -199,43 +199,43 @@
"data"
:
[
"data"
:
[
[
[
"\u7b2c1\u6b21"
,
"\u7b2c1\u6b21"
,
1
43
1
20
],
],
[
[
"\u7b2c2\u6b21"
,
"\u7b2c2\u6b21"
,
45
120
],
],
[
[
"\u7b2c3\u6b21"
,
"\u7b2c3\u6b21"
,
1
4
0
1
2
0
],
],
[
[
"\u7b2c4\u6b21"
,
"\u7b2c4\u6b21"
,
33
120
],
],
[
[
"\u7b2c5\u6b21"
,
"\u7b2c5\u6b21"
,
1
94
1
20
],
],
[
[
"\u7b2c6\u6b21"
,
"\u7b2c6\u6b21"
,
76
120
],
],
[
[
"\u7b2c7\u6b21"
,
"\u7b2c7\u6b21"
,
12
1
12
0
],
],
[
[
"\u7b2c8\u6b21"
,
"\u7b2c8\u6b21"
,
20
1
20
],
],
[
[
"\u7b2c9\u6b21"
,
"\u7b2c9\u6b21"
,
1
44
1
20
],
],
[
[
"\u7b2c10\u6b21"
,
"\u7b2c10\u6b21"
,
35
120
]
]
],
],
"hoverAnimation"
:
true
,
"hoverAnimation"
:
true
,
...
@@ -262,12 +262,12 @@
...
@@ -262,12 +262,12 @@
{
{
"data"
:
[
"data"
:
[
"\u806a\u806a"
,
"\u806a\u806a"
,
"\u5c0f\u
6770
"
,
"\u5c0f\u
8d1d
"
,
"\u76ae\u76ae"
"\u76ae\u76ae"
],
],
"selected"
:
{
"selected"
:
{
"\u806a\u806a"
:
true
,
"\u806a\u806a"
:
true
,
"\u5c0f\u
6770
"
:
true
,
"\u5c0f\u
8d1d
"
:
true
,
"\u76ae\u76ae"
:
true
"\u76ae\u76ae"
:
true
},
},
"show"
:
true
,
"show"
:
true
,
...
@@ -357,7 +357,7 @@
...
@@ -357,7 +357,7 @@
"subtext"
:
"\u9ad8254\u73ed\u6570\u5b66"
"subtext"
:
"\u9ad8254\u73ed\u6570\u5b66"
}
}
};
};
chart_
25bfdeb8c1bc49fc934b833002987029
.
setOption
(
option_25bfdeb8c1bc49fc934b833002987029
);
chart_
1ca6d407151d41f79c7a5b6545978a4c
.
setOption
(
option_1ca6d407151d41f79c7a5b6545978a4c
);
</script>
</script>
</body>
</body>
</html>
</html>
my_analysis.py
View file @
6866ae85
from
pyecharts.charts
import
Line
from
pyecharts.charts
import
Line
test
=
[
"第1次"
,
"第2次"
,
"第3次"
,
"第4次"
,
"第5次"
,
"第6次"
,
"第7次"
,
"第8次"
,
"第9次"
,
"第10次"
]
test
=
[
"第1次"
,
"第2次"
,
"第3次"
,
"第4次"
,
"第5次"
,
"第6次"
,
"第7次"
,
"第8次"
,
"第9次"
,
"第10次"
]
student1
=
[
89
,
10
,
78
,
23
,
129
,
32
,
86
,
45
,
84
,
13
]
# 聪聪
student1
=
[
75
,
75
,
75
,
75
,
75
,
75
,
75
,
75
,
75
,
75
]
# 聪聪
student2
=
[
1
2
,
113
,
12
,
112
,
13
,
112
,
12
,
113
,
13
,
122
]
# 小杰
student2
=
[
1
50
,
150
,
150
,
150
,
150
,
150
,
150
,
150
,
150
,
150
]
# 小杰
student3
=
[
1
43
,
45
,
140
,
33
,
194
,
76
,
121
,
20
,
144
,
35
]
# 皮皮
student3
=
[
1
20
,
120
,
120
,
120
,
120
,
120
,
120
,
120
,
120
,
120
]
# 皮皮
line
=
Line
()
line
=
Line
()
line
.
add_xaxis
(
test
)
line
.
add_xaxis
(
test
)
line
.
add_yaxis
(
"聪聪"
,
student1
)
line
.
add_yaxis
(
"聪聪"
,
student1
)
line
.
add_yaxis
(
"小
杰
"
,
student2
)
line
.
add_yaxis
(
"小
贝
"
,
student2
)
line
.
add_yaxis
(
"皮皮"
,
student3
)
line
.
add_yaxis
(
"皮皮"
,
student3
)
line
.
set_global_opts
(
title_opts
=
{
"text"
:
"成绩走势图"
,
"subtext"
:
"高254班数学"
})
line
.
set_global_opts
(
title_opts
=
{
"text"
:
"成绩走势图"
,
"subtext"
:
"高254班数学"
})
line
.
render
(
"analysis.html"
)
line
.
render
(
"analysis.html"
)
\ No newline at end of file
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