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
02f42201
authored
Jun 22, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
a847c8b1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
analysis.html
my_analysis.py
analysis.html
View file @
02f42201
...
@@ -7,11 +7,11 @@
...
@@ -7,11 +7,11 @@
</head>
</head>
<body>
<body>
<div
id=
"
d32946d3b82042e69d6834568c8989d8
"
class=
"chart-container"
style=
"width:900px; height:500px;"
></div>
<div
id=
"
e29c20508f8c427196d9b77eab936c8d
"
class=
"chart-container"
style=
"width:900px; height:500px;"
></div>
<script>
<script>
var
chart_
d32946d3b82042e69d6834568c8989d8
=
echarts
.
init
(
var
chart_
e29c20508f8c427196d9b77eab936c8d
=
echarts
.
init
(
document
.
getElementById
(
'
d32946d3b82042e69d6834568c8989d8
'
),
'white'
,
{
renderer
:
'canvas'
});
document
.
getElementById
(
'
e29c20508f8c427196d9b77eab936c8d
'
),
'white'
,
{
renderer
:
'canvas'
});
var
option_
d32946d3b82042e69d6834568c8989d8
=
{
var
option_
e29c20508f8c427196d9b77eab936c8d
=
{
"animation"
:
true
,
"animation"
:
true
,
"animationThreshold"
:
2000
,
"animationThreshold"
:
2000
,
"animationDuration"
:
1000
,
"animationDuration"
:
1000
,
...
@@ -77,7 +77,7 @@
...
@@ -77,7 +77,7 @@
},
},
{
{
"type"
:
"bar"
,
"type"
:
"bar"
,
"name"
:
"\u671f\u
4e2d
"
,
"name"
:
"\u671f\u
672b
"
,
"legendHoverLink"
:
true
,
"legendHoverLink"
:
true
,
"data"
:
[
"data"
:
[
5
,
5
,
...
@@ -108,10 +108,11 @@
...
@@ -108,10 +108,11 @@
{
{
"data"
:
[
"data"
:
[
"\u671f\u4e2d"
,
"\u671f\u4e2d"
,
"\u671f\u
4e2d
"
"\u671f\u
672b
"
],
],
"selected"
:
{
"selected"
:
{
"\u671f\u4e2d"
:
true
"\u671f\u4e2d"
:
true
,
"\u671f\u672b"
:
true
}
}
}
}
],
],
...
@@ -185,7 +186,7 @@
...
@@ -185,7 +186,7 @@
}
}
]
]
};
};
chart_
d32946d3b82042e69d6834568c8989d8
.
setOption
(
option_d32946d3b82042e69d6834568c8989d8
);
chart_
e29c20508f8c427196d9b77eab936c8d
.
setOption
(
option_e29c20508f8c427196d9b77eab936c8d
);
</script>
</script>
</body>
</body>
</html>
</html>
my_analysis.py
View file @
02f42201
...
@@ -8,6 +8,6 @@ bar = Bar()
...
@@ -8,6 +8,6 @@ bar = Bar()
bar
.
add_xaxis
(
subjects
)
bar
.
add_xaxis
(
subjects
)
bar
.
add_yaxis
(
"期中"
,
scores1
,
bar_width
=
40
)
bar
.
add_yaxis
(
"期中"
,
scores1
,
bar_width
=
40
)
bar
.
add_yaxis
(
"期
中
"
,
scores2
,
bar_width
=
40
)
bar
.
add_yaxis
(
"期
末
"
,
scores2
,
bar_width
=
40
)
bar
.
render
(
"analysis.html"
)
bar
.
render
(
"analysis.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