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
530a8334
authored
May 13, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
52725462
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
223.html
my_analysis.py
223.html
View file @
530a8334
...
...
@@ -7,11 +7,11 @@
</head>
<body>
<div
id=
"
a375f2eb63b44f16b0ca36efd9fc474b
"
class=
"chart-container"
style=
"width:900px; height:500px;"
></div>
<div
id=
"
660d56f28204424b908411062e041c43
"
class=
"chart-container"
style=
"width:900px; height:500px;"
></div>
<script>
var
chart_
a375f2eb63b44f16b0ca36efd9fc474b
=
echarts
.
init
(
document
.
getElementById
(
'
a375f2eb63b44f16b0ca36efd9fc474b
'
),
'white'
,
{
renderer
:
'canvas'
});
var
option_
a375f2eb63b44f16b0ca36efd9fc474b
=
{
var
chart_
660d56f28204424b908411062e041c43
=
echarts
.
init
(
document
.
getElementById
(
'
660d56f28204424b908411062e041c43
'
),
'white'
,
{
renderer
:
'canvas'
});
var
option_
660d56f28204424b908411062e041c43
=
{
"animation"
:
true
,
"animationThreshold"
:
2000
,
"animationDuration"
:
1000
,
...
...
@@ -80,10 +80,10 @@
"name"
:
"\u671f\u672b"
,
"legendHoverLink"
:
true
,
"data"
:
[
92
,
95
,
82
,
88
79
,
93
,
90
],
"showBackground"
:
false
,
"barWidth"
:
40
,
...
...
@@ -186,7 +186,7 @@
}
]
};
chart_
a375f2eb63b44f16b0ca36efd9fc474b
.
setOption
(
option_a375f2eb63b44f16b0ca36efd9fc474b
);
chart_
660d56f28204424b908411062e041c43
.
setOption
(
option_660d56f28204424b908411062e041c43
);
</script>
</body>
</html>
my_analysis.py
View file @
530a8334
...
...
@@ -7,5 +7,5 @@ scores2 = [95, 79, 93, 90] # 期末成绩
bar
=
Bar
()
bar
.
add_xaxis
(
subjects
)
bar
.
add_yaxis
(
"期中"
,
scores1
,
bar_width
=
40
)
bar
.
add_yaxis
(
"期末"
,
scores
1
,
bar_width
=
40
)
bar
.
add_yaxis
(
"期末"
,
scores
2
,
bar_width
=
40
)
bar
.
render
(
"223.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