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
7435c5f5
authored
Mar 29, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
5fa4d010
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
16 deletions
b,html → b.html
my_analysis.py
b
,
html
→
b
.
html
View file @
7435c5f5
...
@@ -7,11 +7,11 @@
...
@@ -7,11 +7,11 @@
</head>
</head>
<body>
<body>
<div
id=
"
48eb8c5520844250b2a32dee6cd0978f
"
class=
"chart-container"
style=
"width:900px; height:500px;"
></div>
<div
id=
"
10129b3182cc459fbcab8afb6f0cbda1
"
class=
"chart-container"
style=
"width:900px; height:500px;"
></div>
<script>
<script>
var
chart_
48eb8c5520844250b2a32dee6cd0978f
=
echarts
.
init
(
var
chart_
10129b3182cc459fbcab8afb6f0cbda1
=
echarts
.
init
(
document
.
getElementById
(
'
48eb8c5520844250b2a32dee6cd0978f
'
),
'white'
,
{
renderer
:
'canvas'
});
document
.
getElementById
(
'
10129b3182cc459fbcab8afb6f0cbda1
'
),
'white'
,
{
renderer
:
'canvas'
});
var
option_
48eb8c5520844250b2a32dee6cd0978f
=
{
var
option_
10129b3182cc459fbcab8afb6f0cbda1
=
{
"animation"
:
true
,
"animation"
:
true
,
"animationThreshold"
:
2000
,
"animationThreshold"
:
2000
,
"animationDuration"
:
1000
,
"animationDuration"
:
1000
,
...
@@ -52,15 +52,15 @@
...
@@ -52,15 +52,15 @@
"name"
:
"\u6210\u7ee9\u8868"
,
"name"
:
"\u6210\u7ee9\u8868"
,
"legendHoverLink"
:
true
,
"legendHoverLink"
:
true
,
"data"
:
[
"data"
:
[
"\u8bed\u6587"
,
88
,
"\u6570\u5b66"
,
95
,
"\u82f1\u8bed"
,
96
,
"\u5730\u7406"
,
94
,
"\u5386\u53f2"
,
62
,
"\u653f\u6cbb"
,
66
,
"\u751f\u7269"
,
64
,
"\u5316\u5b66"
,
93
,
"\u7269\u7406"
89
],
],
"showBackground"
:
false
,
"showBackground"
:
false
,
"barMinHeight"
:
0
,
"barMinHeight"
:
0
,
...
@@ -165,7 +165,7 @@
...
@@ -165,7 +165,7 @@
}
}
]
]
};
};
chart_
48eb8c5520844250b2a32dee6cd0978f
.
setOption
(
option_48eb8c5520844250b2a32dee6cd0978f
);
chart_
10129b3182cc459fbcab8afb6f0cbda1
.
setOption
(
option_10129b3182cc459fbcab8afb6f0cbda1
);
</script>
</script>
</body>
</body>
</html>
</html>
my_analysis.py
View file @
7435c5f5
...
@@ -4,5 +4,5 @@ subjects = ["è¯æ–‡","æ•°å¦","英è¯","地ç†","历å²","政治","生物","化å
...
@@ -4,5 +4,5 @@ subjects = ["è¯æ–‡","æ•°å¦","英è¯","地ç†","历å²","政治","生物","化å
scores
=
[
88
,
95
,
96
,
94
,
62
,
66
,
64
,
93
,
89
]
scores
=
[
88
,
95
,
96
,
94
,
62
,
66
,
64
,
93
,
89
]
a
=
Bar
()
a
=
Bar
()
a
.
add_xaxis
(
subjects
)
a
.
add_xaxis
(
subjects
)
a
.
add_yaxis
(
"成绩表"
,
subjec
ts
)
a
.
add_yaxis
(
"成绩表"
,
scores
)
a
.
render
(
"b
,
html"
)
a
.
render
(
"b
.
html"
)
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