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
82f2e12f
authored
Oct 19, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
58fcd372
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
13 deletions
1.py
my_analysis.py
rain.html
render.html
1.py
View file @
82f2e12f
...
...
@@ -6,5 +6,5 @@ y1 = [2.6,5.9,9.0,26.4,28.7,76.7,
175.6
,
182.2
,
48.7
,
18.8
,
6.0
,
2.3
]
line
.
add_xaxis
(
x
)
line
.
add_yaxis
(
"降水量"
,
y1
)
line
.
set_global_opts
({
"text"
:
"年降水量"
,
"subtext"
:
"单位:毫米"
})
line
.
set_global_opts
(
title_opts
=
{
"text"
:
"年降水量"
,
"subtext"
:
"单位:毫米"
})
line
.
render
(
"rain.html"
)
\ No newline at end of file
my_analysis.py
View file @
82f2e12f
...
...
@@ -9,4 +9,5 @@ line.add_xaxis(test)
line
.
add_yaxis
(
"聪聪"
,
student1
)
line
.
add_yaxis
(
"小杰"
,
student2
)
line
.
add_yaxis
(
"皮皮"
,
student3
)
line
.
set_global_opts
(
title_opts
=
{
"text"
:
"成绩走势图"
,
"subtext"
:
"高254班数学成绩"
})
line
.
render
()
\ No newline at end of file
rain.html
View file @
82f2e12f
...
...
@@ -7,11 +7,11 @@
</head>
<body>
<div
id=
"d
0b24c7d3b9245c8be85e549d66a3124
"
class=
"chart-container"
style=
"width:900px; height:500px;"
></div>
<div
id=
"d
5d586a3bd184937be284e5fff7143e2
"
class=
"chart-container"
style=
"width:900px; height:500px;"
></div>
<script>
var
chart_d
0b24c7d3b9245c8be85e549d66a3124
=
echarts
.
init
(
document
.
getElementById
(
'd
0b24c7d3b9245c8be85e549d66a3124
'
),
'white'
,
{
renderer
:
'canvas'
});
var
option_d
0b24c7d3b9245c8be85e549d66a3124
=
{
var
chart_d
5d586a3bd184937be284e5fff7143e2
=
echarts
.
init
(
document
.
getElementById
(
'd
5d586a3bd184937be284e5fff7143e2
'
),
'white'
,
{
renderer
:
'canvas'
});
var
option_d
5d586a3bd184937be284e5fff7143e2
=
{
"animation"
:
true
,
"animationThreshold"
:
2000
,
"animationDuration"
:
1000
,
...
...
@@ -223,7 +223,7 @@
"subtext"
:
"\u5355\u4f4d\uff1a\u6beb\u7c73"
}
};
chart_d
0b24c7d3b9245c8be85e549d66a3124
.
setOption
(
option_d0b24c7d3b9245c8be85e549d66a3124
);
chart_d
5d586a3bd184937be284e5fff7143e2
.
setOption
(
option_d5d586a3bd184937be284e5fff7143e2
);
</script>
</body>
</html>
render.html
View file @
82f2e12f
...
...
@@ -7,11 +7,11 @@
</head>
<body>
<div
id=
"
08650cf04dec4bfcafd42a1a665a6ae6
"
class=
"chart-container"
style=
"width:900px; height:500px;"
></div>
<div
id=
"
5b2562a5535d41b3a5b4a75c5b197624
"
class=
"chart-container"
style=
"width:900px; height:500px;"
></div>
<script>
var
chart_
08650cf04dec4bfcafd42a1a665a6ae6
=
echarts
.
init
(
document
.
getElementById
(
'
08650cf04dec4bfcafd42a1a665a6ae6
'
),
'white'
,
{
renderer
:
'canvas'
});
var
option_
08650cf04dec4bfcafd42a1a665a6ae6
=
{
var
chart_
5b2562a5535d41b3a5b4a75c5b197624
=
echarts
.
init
(
document
.
getElementById
(
'
5b2562a5535d41b3a5b4a75c5b197624
'
),
'white'
,
{
renderer
:
'canvas'
});
var
option_
5b2562a5535d41b3a5b4a75c5b197624
=
{
"animation"
:
true
,
"animationThreshold"
:
2000
,
"animationDuration"
:
1000
,
...
...
@@ -269,7 +269,12 @@
"\u806a\u806a"
:
true
,
"\u5c0f\u6770"
:
true
,
"\u76ae\u76ae"
:
true
}
},
"show"
:
true
,
"padding"
:
5
,
"itemGap"
:
10
,
"itemWidth"
:
25
,
"itemHeight"
:
14
}
],
"tooltip"
:
{
...
...
@@ -346,9 +351,13 @@
}
}
}
]
],
"title"
:
{
"text"
:
"\u6210\u7ee9\u8d70\u52bf\u56fe"
,
"subtext"
:
"\u9ad8254\u73ed\u6570\u5b66\u6210\u7ee9"
}
};
chart_
08650cf04dec4bfcafd42a1a665a6ae6
.
setOption
(
option_08650cf04dec4bfcafd42a1a665a6ae6
);
chart_
5b2562a5535d41b3a5b4a75c5b197624
.
setOption
(
option_5b2562a5535d41b3a5b4a75c5b197624
);
</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