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
a83431f2
authored
Oct 15, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
313f9d40
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
my_analysis.py
render.html
my_analysis.py
View file @
a83431f2
...
@@ -3,5 +3,5 @@ bar = Bar()
...
@@ -3,5 +3,5 @@ bar = Bar()
subjects
=
[
"语文"
,
"数学"
,
"英语"
,
"地理"
,
"历史"
,
"政治"
,
"生物"
,
"化学"
,
"物理"
]
subjects
=
[
"语文"
,
"数学"
,
"英语"
,
"地理"
,
"历史"
,
"政治"
,
"生物"
,
"化学"
,
"物理"
]
scores
=
[
88
,
95
,
96
,
94
,
62
,
66
,
64
,
93
,
89
]
scores
=
[
88
,
95
,
96
,
94
,
62
,
66
,
64
,
93
,
89
]
bar
.
add_xaxis
([
"语文"
,
"数学"
,
"英语"
,
"地理"
,
"历史"
,
"政治"
,
"生物"
,
"化学"
,
"物理"
])
bar
.
add_xaxis
([
"语文"
,
"数学"
,
"英语"
,
"地理"
,
"历史"
,
"政治"
,
"生物"
,
"化学"
,
"物理"
])
bar
.
add_yaxis
(
'
score
'
,[
88
,
95
,
96
,
94
,
62
,
66
,
64
,
93
,
89
])
bar
.
add_yaxis
(
'
成绩单
'
,[
88
,
95
,
96
,
94
,
62
,
66
,
64
,
93
,
89
])
bar
.
render
()
bar
.
render
()
render.html
View file @
a83431f2
...
@@ -7,11 +7,11 @@
...
@@ -7,11 +7,11 @@
</head>
</head>
<body>
<body>
<div
id=
"
5f9488f0f1374ef0848e6ad3235f20a7
"
class=
"chart-container"
style=
"width:900px; height:500px;"
></div>
<div
id=
"
6d73caf2858c475fa40772853c49b4e2
"
class=
"chart-container"
style=
"width:900px; height:500px;"
></div>
<script>
<script>
var
chart_
5f9488f0f1374ef0848e6ad3235f20a7
=
echarts
.
init
(
var
chart_
6d73caf2858c475fa40772853c49b4e2
=
echarts
.
init
(
document
.
getElementById
(
'
5f9488f0f1374ef0848e6ad3235f20a7
'
),
'white'
,
{
renderer
:
'canvas'
});
document
.
getElementById
(
'
6d73caf2858c475fa40772853c49b4e2
'
),
'white'
,
{
renderer
:
'canvas'
});
var
option_
5f9488f0f1374ef0848e6ad3235f20a7
=
{
var
option_
6d73caf2858c475fa40772853c49b4e2
=
{
"animation"
:
true
,
"animation"
:
true
,
"animationThreshold"
:
2000
,
"animationThreshold"
:
2000
,
"animationDuration"
:
1000
,
"animationDuration"
:
1000
,
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
"series"
:
[
"series"
:
[
{
{
"type"
:
"bar"
,
"type"
:
"bar"
,
"name"
:
"
score
"
,
"name"
:
"
\u6210\u7ee9\u5355
"
,
"legendHoverLink"
:
true
,
"legendHoverLink"
:
true
,
"data"
:
[
"data"
:
[
88
,
88
,
...
@@ -83,10 +83,10 @@
...
@@ -83,10 +83,10 @@
"legend"
:
[
"legend"
:
[
{
{
"data"
:
[
"data"
:
[
"
score
"
"
\u6210\u7ee9\u5355
"
],
],
"selected"
:
{
"selected"
:
{
"
score
"
:
true
"
\u6210\u7ee9\u5355
"
:
true
}
}
}
}
],
],
...
@@ -165,7 +165,7 @@
...
@@ -165,7 +165,7 @@
}
}
]
]
};
};
chart_
5f9488f0f1374ef0848e6ad3235f20a7
.
setOption
(
option_5f9488f0f1374ef0848e6ad3235f20a7
);
chart_
6d73caf2858c475fa40772853c49b4e2
.
setOption
(
option_6d73caf2858c475fa40772853c49b4e2
);
</script>
</script>
</body>
</body>
</html>
</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