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
fa50882c
authored
Oct 04, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
b8e835e8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
5 deletions
3.py
345.html
3.py
0 → 100644
View file @
fa50882c
from
pyecharts.charts
import
Line
test
=
[
"第1次"
,
"第2次"
,
"第3次"
,
"第4次"
,
"第5次"
,
"第6次"
,
"第7次"
,
"第8次"
,
"第9次"
,
"第10次"
]
student1
=
[
112
,
110
,
118
,
124
,
129
,
132
,
136
,
139
,
144
,
143
]
# 聪聪
student2
=
[
128
,
131
,
132
,
129
,
130
,
127
,
129
,
131
,
132
,
128
]
# 小杰
student3
=
[
143
,
145
,
140
,
133
,
134
,
126
,
121
,
120
,
114
,
105
]
# 皮皮
bar
=
Bar
()
line
.
abb_xaxis
(
test
)
line
.
abb_yaxis
(
"聪聪"
,
student1
)
line
.
abb_yaxis
(
"小杰"
,
student2
)
line
.
abb_yaxis
(
"皮皮"
,
student3
)
Line
.
render
(
"78.html"
)
\ No newline at end of file
345.html
View file @
fa50882c
...
@@ -7,11 +7,11 @@
...
@@ -7,11 +7,11 @@
</head>
</head>
<body>
<body>
<div
id=
"
ab2c82fca49541edb18a4dd0080436a3
"
class=
"chart-container"
style=
"width:900px; height:500px;"
></div>
<div
id=
"
492f7fd88851472684f70be1024a307d
"
class=
"chart-container"
style=
"width:900px; height:500px;"
></div>
<script>
<script>
var
chart_
ab2c82fca49541edb18a4dd0080436a3
=
echarts
.
init
(
var
chart_
492f7fd88851472684f70be1024a307d
=
echarts
.
init
(
document
.
getElementById
(
'
ab2c82fca49541edb18a4dd0080436a3
'
),
'white'
,
{
renderer
:
'canvas'
});
document
.
getElementById
(
'
492f7fd88851472684f70be1024a307d
'
),
'white'
,
{
renderer
:
'canvas'
});
var
option_
ab2c82fca49541edb18a4dd0080436a3
=
{
var
option_
492f7fd88851472684f70be1024a307d
=
{
"animation"
:
true
,
"animation"
:
true
,
"animationThreshold"
:
2000
,
"animationThreshold"
:
2000
,
"animationDuration"
:
1000
,
"animationDuration"
:
1000
,
...
@@ -184,7 +184,7 @@
...
@@ -184,7 +184,7 @@
}
}
]
]
};
};
chart_
ab2c82fca49541edb18a4dd0080436a3
.
setOption
(
option_ab2c82fca49541edb18a4dd0080436a3
);
chart_
492f7fd88851472684f70be1024a307d
.
setOption
(
option_492f7fd88851472684f70be1024a307d
);
</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