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
a978ebde
authored
Nov 12, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
96cc555b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
chengji.html
my_analysis.py
chengji.html
View file @
a978ebde
...
...
@@ -7,11 +7,11 @@
</head>
<body>
<div
id=
"
36faf116447a4c29bd39ffe57fd0aaba
"
class=
"chart-container"
style=
"width:900px; height:500px;"
></div>
<div
id=
"
7ce2bd929dcd4a42af1371539a02cdaf
"
class=
"chart-container"
style=
"width:900px; height:500px;"
></div>
<script>
var
chart_
36faf116447a4c29bd39ffe57fd0aaba
=
echarts
.
init
(
document
.
getElementById
(
'
36faf116447a4c29bd39ffe57fd0aaba
'
),
'white'
,
{
renderer
:
'canvas'
});
var
option_
36faf116447a4c29bd39ffe57fd0aaba
=
{
var
chart_
7ce2bd929dcd4a42af1371539a02cdaf
=
echarts
.
init
(
document
.
getElementById
(
'
7ce2bd929dcd4a42af1371539a02cdaf
'
),
'white'
,
{
renderer
:
'canvas'
});
var
option_
7ce2bd929dcd4a42af1371539a02cdaf
=
{
"animation"
:
true
,
"animationThreshold"
:
2000
,
"animationDuration"
:
1000
,
...
...
@@ -58,7 +58,7 @@
88
],
"showBackground"
:
false
,
"barWidth"
:
3
0
,
"barWidth"
:
4
0
,
"barMinHeight"
:
0
,
"barCategoryGap"
:
"20%"
,
"barGap"
:
"30%"
,
...
...
@@ -86,7 +86,7 @@
90
],
"showBackground"
:
false
,
"barWidth"
:
3
0
,
"barWidth"
:
4
0
,
"barMinHeight"
:
0
,
"barCategoryGap"
:
"20%"
,
"barGap"
:
"30%"
,
...
...
@@ -186,7 +186,7 @@
}
]
};
chart_
36faf116447a4c29bd39ffe57fd0aaba
.
setOption
(
option_36faf116447a4c29bd39ffe57fd0aaba
);
chart_
7ce2bd929dcd4a42af1371539a02cdaf
.
setOption
(
option_7ce2bd929dcd4a42af1371539a02cdaf
);
</script>
</body>
</html>
my_analysis.py
View file @
a978ebde
...
...
@@ -5,6 +5,6 @@ scores1 = [92, 95, 82, 88] # 期中成绩
scores2
=
[
95
,
79
,
93
,
90
]
# 期末成绩
bar
=
Bar
()
bar
.
add_xaxis
(
subjects
)
bar
.
add_yaxis
(
"期中成绩"
,
scores1
,
bar_width
=
5
0
)
bar
.
add_yaxis
(
"期末成绩"
,
scores2
,
bar_width
=
5
0
)
bar
.
add_yaxis
(
"期中成绩"
,
scores1
,
bar_width
=
4
0
)
bar
.
add_yaxis
(
"期末成绩"
,
scores2
,
bar_width
=
4
0
)
bar
.
render
(
"chengji.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