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
1cc14d97
authored
Jun 23, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
eeec02e0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
analysis.html
my_analysis.py
analysis.html
View file @
1cc14d97
...
@@ -7,11 +7,11 @@
...
@@ -7,11 +7,11 @@
</head>
</head>
<body>
<body>
<div
id=
"
061f7dd6e65d4096be10e03e3c95a1eb
"
class=
"chart-container"
style=
"width:900px; height:500px;"
></div>
<div
id=
"
86c1e9ecc30341e0ba5f56806074ae87
"
class=
"chart-container"
style=
"width:900px; height:500px;"
></div>
<script>
<script>
var
chart_
061f7dd6e65d4096be10e03e3c95a1eb
=
echarts
.
init
(
var
chart_
86c1e9ecc30341e0ba5f56806074ae87
=
echarts
.
init
(
document
.
getElementById
(
'
061f7dd6e65d4096be10e03e3c95a1eb
'
),
'white'
,
{
renderer
:
'canvas'
});
document
.
getElementById
(
'
86c1e9ecc30341e0ba5f56806074ae87
'
),
'white'
,
{
renderer
:
'canvas'
});
var
option_
061f7dd6e65d4096be10e03e3c95a1eb
=
{
var
option_
86c1e9ecc30341e0ba5f56806074ae87
=
{
"animation"
:
true
,
"animation"
:
true
,
"animationThreshold"
:
2000
,
"animationThreshold"
:
2000
,
"animationDuration"
:
1000
,
"animationDuration"
:
1000
,
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
92
,
92
,
95
,
95
,
82
,
82
,
88
32
],
],
"showBackground"
:
false
,
"showBackground"
:
false
,
"barWidth"
:
40
,
"barWidth"
:
40
,
...
@@ -83,7 +83,7 @@
...
@@ -83,7 +83,7 @@
95
,
95
,
79
,
79
,
93
,
93
,
90
27
],
],
"showBackground"
:
false
,
"showBackground"
:
false
,
"barWidth"
:
40
,
"barWidth"
:
40
,
...
@@ -186,7 +186,7 @@
...
@@ -186,7 +186,7 @@
}
}
]
]
};
};
chart_
061f7dd6e65d4096be10e03e3c95a1eb
.
setOption
(
option_061f7dd6e65d4096be10e03e3c95a1eb
);
chart_
86c1e9ecc30341e0ba5f56806074ae87
.
setOption
(
option_86c1e9ecc30341e0ba5f56806074ae87
);
</script>
</script>
</body>
</body>
</html>
</html>
my_analysis.py
View file @
1cc14d97
from
pyecharts.charts
import
Bar
from
pyecharts.charts
import
Bar
subjects
=
[
"浈浈"
,
"聪聪"
,
"小智"
,
"波奇(成绩已作废)"
]
subjects
=
[
"浈浈"
,
"聪聪"
,
"小智"
,
"波奇(成绩已作废)"
]
scores1
=
[
92
,
95
,
82
,
88
]
# 期中成绩
scores1
=
[
92
,
95
,
82
,
32
]
# 期中成绩
scores2
=
[
95
,
79
,
93
,
90
]
# 期末成绩
scores2
=
[
95
,
79
,
93
,
27
]
# 期末成绩
bar
=
Bar
()
bar
=
Bar
()
bar
.
add_xaxis
(
subjects
)
bar
.
add_xaxis
(
subjects
)
...
...
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