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
0ad8c13c
authored
Dec 24, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
7177c579
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
11.html
my_analysis.py
11.html
View file @
0ad8c13c
...
...
@@ -7,11 +7,11 @@
</head>
<body>
<div
id=
"6
15874541d5a4cb4b9c91ddafcee7fe6
"
class=
"chart-container"
style=
"width:900px; height:500px;"
></div>
<div
id=
"6
2659f76498742c1902ab002f54243ad
"
class=
"chart-container"
style=
"width:900px; height:500px;"
></div>
<script>
var
chart_6
15874541d5a4cb4b9c91ddafcee7fe6
=
echarts
.
init
(
document
.
getElementById
(
'6
15874541d5a4cb4b9c91ddafcee7fe6
'
),
'white'
,
{
renderer
:
'canvas'
});
var
option_6
15874541d5a4cb4b9c91ddafcee7fe6
=
{
var
chart_6
2659f76498742c1902ab002f54243ad
=
echarts
.
init
(
document
.
getElementById
(
'6
2659f76498742c1902ab002f54243ad
'
),
'white'
,
{
renderer
:
'canvas'
});
var
option_6
2659f76498742c1902ab002f54243ad
=
{
"animation"
:
true
,
"animationThreshold"
:
2000
,
"animationDuration"
:
1000
,
...
...
@@ -58,6 +58,7 @@
88
],
"showBackground"
:
false
,
"barWidth"
:
30
,
"barMinHeight"
:
0
,
"barCategoryGap"
:
"20%"
,
"barGap"
:
"30%"
,
...
...
@@ -85,6 +86,7 @@
90
],
"showBackground"
:
false
,
"barWidth"
:
30
,
"barMinHeight"
:
0
,
"barCategoryGap"
:
"20%"
,
"barGap"
:
"30%"
,
...
...
@@ -184,7 +186,7 @@
}
]
};
chart_6
15874541d5a4cb4b9c91ddafcee7fe6
.
setOption
(
option_615874541d5a4cb4b9c91ddafcee7fe6
);
chart_6
2659f76498742c1902ab002f54243ad
.
setOption
(
option_62659f76498742c1902ab002f54243ad
);
</script>
</body>
</html>
my_analysis.py
View file @
0ad8c13c
...
...
@@ -3,8 +3,8 @@ bar=Bar()
subjects
=
[
"浈浈"
,
"聪聪"
,
"小智"
,
"波奇"
]
scores1
=
[
92
,
95
,
82
,
88
]
# 期中成绩
scores2
=
[
95
,
79
,
93
,
90
]
# 期末成绩
bar
.
add_yaxis
(
"期中成绩"
,
scores1
)
bar
.
add_yaxis
(
"期末成绩"
,
scores2
)
bar
.
add_yaxis
(
"期中成绩"
,
scores1
,
bar_width
=
30
)
bar
.
add_yaxis
(
"期末成绩"
,
scores2
,
bar_width
=
30
)
bar
.
add_xaxis
(
subjects
)
bar
.
render
(
"11.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