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
1d50bb37
authored
Aug 14, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
c49281ef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
qwertyuiioo.py
render.html
qwertyuiioo.py
View file @
1d50bb37
from
pyecharts.charts
import
Bar
from
pyecharts.charts
import
Bar
bar
=
Bar
()
bar
=
Bar
()
bar
.
add_xaxis
([
"语文"
,
"数学"
,
"英语"
,
"地理"
,
"历史"
,
"政治"
,
"生物"
,
"化学"
,
"物理"
])
bar
.
add_xaxis
([
"语文"
,
"数学"
,
"英语"
,
"地理"
,
"历史"
,
"政治"
,
"生物"
,
"化学"
,
"物理"
])
bar
.
add_yaxis
(
"殷秋实各科成绩"
,[
100
,
-
456
,
-
6272
,
8172
,
80
,
-
826
,
-
7824
,
-
5283
,
-
528
28
])
bar
.
add_yaxis
(
"殷秋实各科成绩"
,[
100
,
56
,
72
,
81
,
50
,
26
,
24
,
53
,
28
])
bar
.
render
()
bar
.
render
()
render.html
View file @
1d50bb37
...
@@ -7,11 +7,11 @@
...
@@ -7,11 +7,11 @@
</head>
</head>
<body>
<body>
<div
id=
"
a50c69e16f954ed19cb561811fcf9dc
1"
class=
"chart-container"
style=
"width:900px; height:500px;"
></div>
<div
id=
"
f40b89f668224595acb153ede2e5495
1"
class=
"chart-container"
style=
"width:900px; height:500px;"
></div>
<script>
<script>
var
chart_
a50c69e16f954ed19cb561811fcf9dc
1
=
echarts
.
init
(
var
chart_
f40b89f668224595acb153ede2e5495
1
=
echarts
.
init
(
document
.
getElementById
(
'
a50c69e16f954ed19cb561811fcf9dc
1'
),
'white'
,
{
renderer
:
'canvas'
});
document
.
getElementById
(
'
f40b89f668224595acb153ede2e5495
1'
),
'white'
,
{
renderer
:
'canvas'
});
var
option_
a50c69e16f954ed19cb561811fcf9dc
1
=
{
var
option_
f40b89f668224595acb153ede2e5495
1
=
{
"animation"
:
true
,
"animation"
:
true
,
"animationThreshold"
:
2000
,
"animationThreshold"
:
2000
,
"animationDuration"
:
1000
,
"animationDuration"
:
1000
,
...
@@ -56,11 +56,11 @@
...
@@ -56,11 +56,11 @@
-
456
,
-
456
,
-
6272
,
-
6272
,
8172
,
8172
,
80
,
8
5
0
,
-
826
,
-
826
,
-
7824
,
-
7824
,
-
5
28
3
,
-
5
55
3
,
-
5
2
828
-
5828
],
],
"showBackground"
:
false
,
"showBackground"
:
false
,
"barMinHeight"
:
0
,
"barMinHeight"
:
0
,
...
@@ -165,7 +165,7 @@
...
@@ -165,7 +165,7 @@
}
}
]
]
};
};
chart_
a50c69e16f954ed19cb561811fcf9dc1
.
setOption
(
option_a50c69e16f954ed19cb561811fcf9dc
1
);
chart_
f40b89f668224595acb153ede2e54951
.
setOption
(
option_f40b89f668224595acb153ede2e5495
1
);
</script>
</script>
</body>
</body>
</html>
</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