Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
level3-lesson24-diy3
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
546a73ea
authored
Dec 28, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
b5b1c224
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
5 deletions
LINE.html
my_analysis2.py
LINE.html
View file @
546a73ea
...
...
@@ -7,11 +7,11 @@
</head>
<body>
<div
id=
"
bee0012d84524671b214aa6db77ea0f4
"
class=
"chart-container"
style=
"width:900px; height:500px;"
></div>
<div
id=
"
da6566ad7830459e9b84941b4a743083
"
class=
"chart-container"
style=
"width:900px; height:500px;"
></div>
<script>
var
chart_
bee0012d84524671b214aa6db77ea0f4
=
echarts
.
init
(
document
.
getElementById
(
'
bee0012d84524671b214aa6db77ea0f4
'
),
'white'
,
{
renderer
:
'canvas'
});
var
option_
bee0012d84524671b214aa6db77ea0f4
=
{
var
chart_
da6566ad7830459e9b84941b4a743083
=
echarts
.
init
(
document
.
getElementById
(
'
da6566ad7830459e9b84941b4a743083
'
),
'white'
,
{
renderer
:
'canvas'
});
var
option_
da6566ad7830459e9b84941b4a743083
=
{
"animation"
:
true
,
"animationThreshold"
:
2000
,
"animationDuration"
:
1000
,
...
...
@@ -357,7 +357,7 @@
"subtext"
:
"\u5355\u4f4d\uff1a\u5206"
}
};
chart_
bee0012d84524671b214aa6db77ea0f4
.
setOption
(
option_bee0012d84524671b214aa6db77ea0f4
);
chart_
da6566ad7830459e9b84941b4a743083
.
setOption
(
option_da6566ad7830459e9b84941b4a743083
);
</script>
</body>
</html>
my_analysis2.py
0 → 100644
View file @
546a73ea
from
pyecharts.charts
import
Pie
add1
=
[(
"氮气"
,
78
),(
"氧气"
,
21
),(
"其他气体"
,
1
)]
pie
=
Pie
()
pie
.
add
(
''
,
add1
)
pie
.
render
(
"PIE.html"
)
\ No newline at end of file
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