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
cef6d30f
authored
Nov 27, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
e0e6d407
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
my_analysis.py
render.html
my_analysis.py
View file @
cef6d30f
from
pyecharts.charts
import
Bar
subjects
=
[
"语文"
,
"数学"
,
"英语"
,
"地理"
,
"历史"
,
"政治"
,
"生物"
,
"化学"
,
"物理"
]
scores
=
[
88
,
95
,
96
,
94
,
62
,
66
,
64
,
93
,
89
]
scores
=
[
138
,
145
,
136
,
94
,
92
,
86
,
76
,
93
,
92
]
bar
=
Bar
()
bar
.
add_xaxis
(
subjects
)
bar
.
add_yaxis
(
"qwerty"
,
scores
)
...
...
render.html
View file @
cef6d30f
...
...
@@ -7,11 +7,11 @@
</head>
<body>
<div
id=
"
447d1676d9d749b2afe937156e303fd7
"
class=
"chart-container"
style=
"width:900px; height:500px;"
></div>
<div
id=
"
85aeca4a99694d74bd95ece577cd718f
"
class=
"chart-container"
style=
"width:900px; height:500px;"
></div>
<script>
var
chart_
447d1676d9d749b2afe937156e303fd7
=
echarts
.
init
(
document
.
getElementById
(
'
447d1676d9d749b2afe937156e303fd7
'
),
'white'
,
{
renderer
:
'canvas'
});
var
option_
447d1676d9d749b2afe937156e303fd7
=
{
var
chart_
85aeca4a99694d74bd95ece577cd718f
=
echarts
.
init
(
document
.
getElementById
(
'
85aeca4a99694d74bd95ece577cd718f
'
),
'white'
,
{
renderer
:
'canvas'
});
var
option_
85aeca4a99694d74bd95ece577cd718f
=
{
"animation"
:
true
,
"animationThreshold"
:
2000
,
"animationDuration"
:
1000
,
...
...
@@ -52,15 +52,15 @@
"name"
:
"qwerty"
,
"legendHoverLink"
:
true
,
"data"
:
[
8
8
,
9
5
,
9
6
,
13
8
,
14
5
,
13
6
,
94
,
6
2
,
6
6
,
64
,
9
2
,
8
6
,
76
,
93
,
89
92
],
"showBackground"
:
false
,
"barMinHeight"
:
0
,
...
...
@@ -165,7 +165,7 @@
}
]
};
chart_
447d1676d9d749b2afe937156e303fd7
.
setOption
(
option_447d1676d9d749b2afe937156e303fd7
);
chart_
85aeca4a99694d74bd95ece577cd718f
.
setOption
(
option_85aeca4a99694d74bd95ece577cd718f
);
</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