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
7f49e3f0
authored
Oct 13, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
43ebbfcb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
20 deletions
1234.html
my_analysis.py
1234.html
View file @
7f49e3f0
...
...
@@ -7,11 +7,11 @@
</head>
<body>
<div
id=
"
2a51be0236f142f1825daba59cb5c199
"
class=
"chart-container"
style=
"width:900px; height:500px;"
></div>
<div
id=
"
09dc5d43e641425e90a4deb6a0e9404a
"
class=
"chart-container"
style=
"width:900px; height:500px;"
></div>
<script>
var
chart_
2a51be0236f142f1825daba59cb5c199
=
echarts
.
init
(
document
.
getElementById
(
'
2a51be0236f142f1825daba59cb5c199
'
),
'white'
,
{
renderer
:
'canvas'
});
var
option_
2a51be0236f142f1825daba59cb5c199
=
{
var
chart_
09dc5d43e641425e90a4deb6a0e9404a
=
echarts
.
init
(
document
.
getElementById
(
'
09dc5d43e641425e90a4deb6a0e9404a
'
),
'white'
,
{
renderer
:
'canvas'
});
var
option_
09dc5d43e641425e90a4deb6a0e9404a
=
{
"animation"
:
true
,
"animationThreshold"
:
2000
,
"animationDuration"
:
1000
,
...
...
@@ -429,7 +429,7 @@
"subtext"
:
"\u5355\u4f4d\uff1a\u4e2a"
}
};
chart_
2a51be0236f142f1825daba59cb5c199
.
setOption
(
option_2a51be0236f142f1825daba59cb5c199
);
chart_
09dc5d43e641425e90a4deb6a0e9404a
.
setOption
(
option_09dc5d43e641425e90a4deb6a0e9404a
);
</script>
</body>
</html>
my_analysis.py
View file @
7f49e3f0
from
pyecharts.charts
import
Line
test
=
[
"第1次"
,
"第2次"
,
"第3次"
,
"第4次"
,
"第5次"
,
"第6次"
,
"第7次"
,
"第8次"
,
"第9次"
,
"第10次"
]
student1
=
[
5
,
10
,
88
,
24
,
89
,
132
,
136
,
139
,
144
,
143
]
student2
=
[
8
,
31
,
32
,
29
,
90
,
127
,
129
,
131
,
132
,
128
]
student3
=
[
3
,
45
,
40
,
33
,
134
,
126
,
121
,
120
,
114
,
105
]
student4
=
[
1
,
29
,
56
,
34
,
59
,
24
,
70
,
100
,
89
,
130
]
bbbb
=
Line
()
bbbb
.
add_xaxis
(
test
)
bbbb
.
add_yaxis
(
"聪聪分数"
,
student1
)
bbbb
.
add_yaxis
(
"小杰分数"
,
student2
)
bbbb
.
add_yaxis
(
"皮皮分数"
,
student3
)
bbbb
.
add_yaxis
(
"憨批分数"
,
student4
)
bbbb
.
set_global_opts
(
title_opts
=
{
"text"
:
"打怪成绩"
,
"subtext"
:
"单位:个"
})
bbbb
.
render
(
"1234.html"
)
\ No newline at end of file
white
open
(
r'C\Users\CM\Desktop\sales_list.txt''r,encoding='
utf
-
8
')as file
a=file.readlines()
final_sun=[]
for i in a:
datea=i.split()
sum=0
for sales in date[1:]::
sum=sum+int(sales)
result=data[0]+str(sun)
result=data[0]+str(sum)
frna_sum.append(result)
with open(r'
C
:
\
Users
\
CM
\
desktop
\
new_salist
,
txt
''
a
,
encoding
=
"utf-8(as 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