Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
level3-lesson24-diy2
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
b1761656
authored
Oct 15, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
b313faa5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
10 deletions
my_analysis.py
render.html
my_analysis.py
View file @
b1761656
from
pyecharts.charts
import
Bar
bar
=
Bar
()
bar
.
add_xaxis
([
"
浈浈"
,
"聪聪"
,
"小智"
,
"波奇
"
])
bar
.
add_xaxis
([
"
1月"
,
"2月"
,
"3月"
,
"4月"
,
"5月"
,
"6月"
,
"7月"
,
"8月"
,
"9月"
,
"10月"
,
"11月"
,
"12月
"
])
bar
.
add_yaxis
(
"期中成绩"
,[
92
,
95
,
82
,
88
],)
# 期中成绩
bar
.
add_yaxis
(
"期末成绩"
,[
95
,
79
,
93
,
90
])
# 期末成绩
bar
.
render
()
\ No newline at end of file
render.html
View file @
b1761656
...
...
@@ -7,11 +7,11 @@
</head>
<body>
<div
id=
"
f8a1d9bacc3b42d7be8244e701dc5af4
"
class=
"chart-container"
style=
"width:900px; height:500px;"
></div>
<div
id=
"
8a4337ff120e45739f582154610d7946
"
class=
"chart-container"
style=
"width:900px; height:500px;"
></div>
<script>
var
chart_
f8a1d9bacc3b42d7be8244e701dc5af4
=
echarts
.
init
(
document
.
getElementById
(
'
f8a1d9bacc3b42d7be8244e701dc5af4
'
),
'white'
,
{
renderer
:
'canvas'
});
var
option_
f8a1d9bacc3b42d7be8244e701dc5af4
=
{
var
chart_
8a4337ff120e45739f582154610d7946
=
echarts
.
init
(
document
.
getElementById
(
'
8a4337ff120e45739f582154610d7946
'
),
'white'
,
{
renderer
:
'canvas'
});
var
option_
8a4337ff120e45739f582154610d7946
=
{
"animation"
:
true
,
"animationThreshold"
:
2000
,
"animationDuration"
:
1000
,
...
...
@@ -153,10 +153,18 @@
}
},
"data"
:
[
"\u6d48\u6d48"
,
"\u806a\u806a"
,
"\u5c0f\u667a"
,
"\u6ce2\u5947"
"1\u6708"
,
"2\u6708"
,
"3\u6708"
,
"4\u6708"
,
"5\u6708"
,
"6\u6708"
,
"7\u6708"
,
"8\u6708"
,
"9\u6708"
,
"10\u6708"
,
"11\u6708"
,
"12\u6708"
]
}
],
...
...
@@ -184,7 +192,7 @@
}
]
};
chart_
f8a1d9bacc3b42d7be8244e701dc5af4
.
setOption
(
option_f8a1d9bacc3b42d7be8244e701dc5af4
);
chart_
8a4337ff120e45739f582154610d7946
.
setOption
(
option_8a4337ff120e45739f582154610d7946
);
</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