Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
level3-lesson24-diy1
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
2902c9a3
authored
Mar 02, 2025
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
637b6daf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
12 deletions
666.html
my_analysis.py
666.html
View file @
2902c9a3
...
@@ -7,11 +7,11 @@
...
@@ -7,11 +7,11 @@
</head>
</head>
<body>
<body>
<div
id=
"
2f2a760f4ae74cddaedc79dc8b0590f9
"
class=
"chart-container"
style=
"width:900px; height:500px;"
></div>
<div
id=
"
8e74337d4a054ec5b5e29de1b2e541da
"
class=
"chart-container"
style=
"width:900px; height:500px;"
></div>
<script>
<script>
var
chart_
2f2a760f4ae74cddaedc79dc8b0590f9
=
echarts
.
init
(
var
chart_
8e74337d4a054ec5b5e29de1b2e541da
=
echarts
.
init
(
document
.
getElementById
(
'
2f2a760f4ae74cddaedc79dc8b0590f9
'
),
'white'
,
{
renderer
:
'canvas'
});
document
.
getElementById
(
'
8e74337d4a054ec5b5e29de1b2e541da
'
),
'white'
,
{
renderer
:
'canvas'
});
var
option_
2f2a760f4ae74cddaedc79dc8b0590f9
=
{
var
option_
8e74337d4a054ec5b5e29de1b2e541da
=
{
"animation"
:
true
,
"animation"
:
true
,
"animationThreshold"
:
2000
,
"animationThreshold"
:
2000
,
"animationDuration"
:
1000
,
"animationDuration"
:
1000
,
...
@@ -201,7 +201,7 @@
...
@@ -201,7 +201,7 @@
}
}
]
]
};
};
chart_
2f2a760f4ae74cddaedc79dc8b0590f9
.
setOption
(
option_2f2a760f4ae74cddaedc79dc8b0590f9
);
chart_
8e74337d4a054ec5b5e29de1b2e541da
.
setOption
(
option_8e74337d4a054ec5b5e29de1b2e541da
);
</script>
</script>
</body>
</body>
</html>
</html>
my_analysis.py
View file @
2902c9a3
from
pyecharts.charts
import
Bar
from
pyecharts.charts
import
Line
subjects
=
[
"语文"
,
"数学"
,
"英语"
,
"地理"
,
"历史"
,
"政治"
,
"生物"
,
"化学"
,
"物理"
]
subjects
=
[
"语文"
,
"数学"
,
"英语"
,
"地理"
,
"历史"
,
"政治"
,
"生物"
,
"化学"
,
"物理"
]
scores1
=
[
88
,
95
,
96
,
94
,
62
,
66
,
64
,
93
,
89
]
scores1
=
[
88
,
95
,
96
,
94
,
62
,
66
,
64
,
93
,
89
]
scores2
=
[
88
,
95
,
96
,
94
,
62
,
66
,
64
,
93
,
89
]
scores2
=
[
88
,
95
,
96
,
94
,
62
,
66
,
64
,
93
,
89
]
bar
=
Bar
()
scores3
=
[
88
,
95
,
96
,
94
,
62
,
66
,
64
,
93
,
89
]
bar
.
add_xaxis
(
subjects
)
line
=
Line
()
bar
.
add_yaxis
(
"期中"
,
scores1
,
bar_width
=
40
)
line
.
add_xaxis
()
bar
.
add_yaxis
(
"期末"
,
scores2
,
bar_width
=
40
)
line
.
add_yaxis
(
"聪聪"
,
scores1
)
bar
.
render
(
"666.html"
)
line
.
add_yaxis
(
"小杰"
,
scores2
)
\ No newline at end of file
line
.
add_yaxis
(
"皮皮"
,
scores3
)
line
.
render
(
"888.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