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
8ad68fa8
authored
Oct 15, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
59c2b638
Hide 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 @
8ad68fa8
...
...
@@ -5,5 +5,5 @@ scores = [88, 95, 96, 94, 62, 66, 64, 93, 89]
bar
=
Bar
()
bar
.
add_xaxis
(
subjects
)
bar
.
add_yaxis
(
"
人类
成绩"
,
scores
)
bar
.
add_yaxis
(
"成绩"
,
scores
)
bar
.
render
()
render.html
View file @
8ad68fa8
...
...
@@ -7,11 +7,11 @@
</head>
<body>
<div
id=
"
38bb146f3c3344f19389d4ca28b64ac7
"
class=
"chart-container"
style=
"width:900px; height:500px;"
></div>
<div
id=
"
d1adb80a897e458593592319e02794fb
"
class=
"chart-container"
style=
"width:900px; height:500px;"
></div>
<script>
var
chart_
38bb146f3c3344f19389d4ca28b64ac7
=
echarts
.
init
(
document
.
getElementById
(
'
38bb146f3c3344f19389d4ca28b64ac7
'
),
'white'
,
{
renderer
:
'canvas'
});
var
option_
38bb146f3c3344f19389d4ca28b64ac7
=
{
var
chart_
d1adb80a897e458593592319e02794fb
=
echarts
.
init
(
document
.
getElementById
(
'
d1adb80a897e458593592319e02794fb
'
),
'white'
,
{
renderer
:
'canvas'
});
var
option_
d1adb80a897e458593592319e02794fb
=
{
"animation"
:
true
,
"animationThreshold"
:
2000
,
"animationDuration"
:
1000
,
...
...
@@ -49,7 +49,7 @@
"series"
:
[
{
"type"
:
"bar"
,
"name"
:
"\u
4eba\u7c7b\u
6210\u7ee9"
,
"name"
:
"\u6210\u7ee9"
,
"legendHoverLink"
:
true
,
"data"
:
[
88
,
...
...
@@ -83,10 +83,10 @@
"legend"
:
[
{
"data"
:
[
"\u
4eba\u7c7b\u
6210\u7ee9"
"\u6210\u7ee9"
],
"selected"
:
{
"\u
4eba\u7c7b\u
6210\u7ee9"
:
true
"\u6210\u7ee9"
:
true
}
}
],
...
...
@@ -165,7 +165,7 @@
}
]
};
chart_
38bb146f3c3344f19389d4ca28b64ac7
.
setOption
(
option_38bb146f3c3344f19389d4ca28b64ac7
);
chart_
d1adb80a897e458593592319e02794fb
.
setOption
(
option_d1adb80a897e458593592319e02794fb
);
</script>
</body>
</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