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
a49c3f14
authored
Oct 15, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
f7a7db4f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
my_analysis.py
render.html
my_analysis.py
View file @
a49c3f14
from
pyecharts.charts
import
Bar
bar
=
Bar
()
bar
.
add_xaxis
([
"语文"
,
"数学"
,
"英语"
,
"地理"
,
"历史"
,
"政治"
,
"生物"
,
"化学"
,
"物理"
])
bar
.
add_yaxis
(
"成绩"
,[
54088
,
54088
,
54088
,
54088
,
54088
,
54088
,
54088
,
54088
,
54088
])
bar
.
add_yaxis
(
"成绩"
,[
54088
,
14524
,
54088
,
14524
,
54088
,
14524
,
54088
,
14524
,
54088
])
bar
.
render
()
render.html
View file @
a49c3f14
...
...
@@ -7,11 +7,11 @@
</head>
<body>
<div
id=
"3
44f48e7919e4d6781874d20d7d3e3
44"
class=
"chart-container"
style=
"width:900px; height:500px;"
></div>
<div
id=
"3
e684681ef6749fb8e8ebe2e7a2511
44"
class=
"chart-container"
style=
"width:900px; height:500px;"
></div>
<script>
var
chart_3
44f48e7919e4d6781874d20d7d3e3
44
=
echarts
.
init
(
document
.
getElementById
(
'3
44f48e7919e4d6781874d20d7d3e3
44'
),
'white'
,
{
renderer
:
'canvas'
});
var
option_3
44f48e7919e4d6781874d20d7d3e3
44
=
{
var
chart_3
e684681ef6749fb8e8ebe2e7a2511
44
=
echarts
.
init
(
document
.
getElementById
(
'3
e684681ef6749fb8e8ebe2e7a2511
44'
),
'white'
,
{
renderer
:
'canvas'
});
var
option_3
e684681ef6749fb8e8ebe2e7a2511
44
=
{
"animation"
:
true
,
"animationThreshold"
:
2000
,
"animationDuration"
:
1000
,
...
...
@@ -53,13 +53,13 @@
"legendHoverLink"
:
true
,
"data"
:
[
54088
,
14524
,
54088
,
14524
,
54088
,
14524
,
54088
,
54088
,
54088
,
54088
,
54088
,
14524
,
54088
],
"showBackground"
:
false
,
...
...
@@ -165,7 +165,7 @@
}
]
};
chart_3
44f48e7919e4d6781874d20d7d3e344
.
setOption
(
option_344f48e7919e4d6781874d20d7d3e3
44
);
chart_3
e684681ef6749fb8e8ebe2e7a251144
.
setOption
(
option_3e684681ef6749fb8e8ebe2e7a2511
44
);
</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