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
58fcd372
authored
Oct 19, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
dd37cb2d
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
24 deletions
1.py
my_analysis.py
rain.html
render.html
1.py
View file @
58fcd372
...
@@ -6,4 +6,5 @@ y1 = [2.6,5.9,9.0,26.4,28.7,76.7,
...
@@ -6,4 +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
]
175.6
,
182.2
,
48.7
,
18.8
,
6.0
,
2.3
]
line
.
add_xaxis
(
x
)
line
.
add_xaxis
(
x
)
line
.
add_yaxis
(
"降水量"
,
y1
)
line
.
add_yaxis
(
"降水量"
,
y1
)
line
.
set_global_opts
({
"text"
:
"年降水量"
,
"subtext"
:
"单位:毫米"
})
line
.
render
(
"rain.html"
)
line
.
render
(
"rain.html"
)
\ No newline at end of file
my_analysis.py
View file @
58fcd372
...
@@ -6,7 +6,7 @@ student2 = [128, 131, 132, 129, 130, 127, 129, 131, 132, 128] # 小杰
...
@@ -6,7 +6,7 @@ student2 = [128, 131, 132, 129, 130, 127, 129, 131, 132, 128] # 小杰
student3
=
[
143
,
145
,
140
,
133
,
134
,
126
,
121
,
120
,
114
,
105
]
# 皮皮
student3
=
[
143
,
145
,
140
,
133
,
134
,
126
,
121
,
120
,
114
,
105
]
# 皮皮
line
=
Line
()
line
=
Line
()
line
.
add_xaxis
(
test
)
line
.
add_xaxis
(
test
)
line
.
add_yaxis
(
"
student1
"
,
student1
)
line
.
add_yaxis
(
"
聪聪
"
,
student1
)
line
.
add_yaxis
(
"
student2
"
,
student2
)
line
.
add_yaxis
(
"
小杰
"
,
student2
)
line
.
add_yaxis
(
"
student3
"
,
student3
)
line
.
add_yaxis
(
"
皮皮
"
,
student3
)
line
.
render
()
line
.
render
()
\ No newline at end of file
rain.html
View file @
58fcd372
...
@@ -7,11 +7,11 @@
...
@@ -7,11 +7,11 @@
</head>
</head>
<body>
<body>
<div
id=
"
97b48612e5c142eabcb83aef97d09bd9
"
class=
"chart-container"
style=
"width:900px; height:500px;"
></div>
<div
id=
"
d0b24c7d3b9245c8be85e549d66a3124
"
class=
"chart-container"
style=
"width:900px; height:500px;"
></div>
<script>
<script>
var
chart_
97b48612e5c142eabcb83aef97d09bd9
=
echarts
.
init
(
var
chart_
d0b24c7d3b9245c8be85e549d66a3124
=
echarts
.
init
(
document
.
getElementById
(
'
97b48612e5c142eabcb83aef97d09bd9
'
),
'white'
,
{
renderer
:
'canvas'
});
document
.
getElementById
(
'
d0b24c7d3b9245c8be85e549d66a3124
'
),
'white'
,
{
renderer
:
'canvas'
});
var
option_
97b48612e5c142eabcb83aef97d09bd9
=
{
var
option_
d0b24c7d3b9245c8be85e549d66a3124
=
{
"animation"
:
true
,
"animation"
:
true
,
"animationThreshold"
:
2000
,
"animationThreshold"
:
2000
,
"animationDuration"
:
1000
,
"animationDuration"
:
1000
,
...
@@ -133,7 +133,12 @@
...
@@ -133,7 +133,12 @@
],
],
"selected"
:
{
"selected"
:
{
"\u964d\u6c34\u91cf"
:
true
"\u964d\u6c34\u91cf"
:
true
}
},
"show"
:
true
,
"padding"
:
5
,
"itemGap"
:
10
,
"itemWidth"
:
25
,
"itemHeight"
:
14
}
}
],
],
"tooltip"
:
{
"tooltip"
:
{
...
@@ -212,9 +217,13 @@
...
@@ -212,9 +217,13 @@
}
}
}
}
}
}
]
],
"title"
:
{
"text"
:
"\u5e74\u964d\u6c34\u91cf"
,
"subtext"
:
"\u5355\u4f4d\uff1a\u6beb\u7c73"
}
};
};
chart_
97b48612e5c142eabcb83aef97d09bd9
.
setOption
(
option_97b48612e5c142eabcb83aef97d09bd9
);
chart_
d0b24c7d3b9245c8be85e549d66a3124
.
setOption
(
option_d0b24c7d3b9245c8be85e549d66a3124
);
</script>
</script>
</body>
</body>
</html>
</html>
render.html
View file @
58fcd372
...
@@ -7,11 +7,11 @@
...
@@ -7,11 +7,11 @@
</head>
</head>
<body>
<body>
<div
id=
"
955c2db251174535a998a4421da744ef
"
class=
"chart-container"
style=
"width:900px; height:500px;"
></div>
<div
id=
"
08650cf04dec4bfcafd42a1a665a6ae6
"
class=
"chart-container"
style=
"width:900px; height:500px;"
></div>
<script>
<script>
var
chart_
955c2db251174535a998a4421da744ef
=
echarts
.
init
(
var
chart_
08650cf04dec4bfcafd42a1a665a6ae6
=
echarts
.
init
(
document
.
getElementById
(
'
955c2db251174535a998a4421da744ef
'
),
'white'
,
{
renderer
:
'canvas'
});
document
.
getElementById
(
'
08650cf04dec4bfcafd42a1a665a6ae6
'
),
'white'
,
{
renderer
:
'canvas'
});
var
option_
955c2db251174535a998a4421da744ef
=
{
var
option_
08650cf04dec4bfcafd42a1a665a6ae6
=
{
"animation"
:
true
,
"animation"
:
true
,
"animationThreshold"
:
2000
,
"animationThreshold"
:
2000
,
"animationDuration"
:
1000
,
"animationDuration"
:
1000
,
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
"series"
:
[
"series"
:
[
{
{
"type"
:
"line"
,
"type"
:
"line"
,
"name"
:
"
student1
"
,
"name"
:
"
\u806a\u806a
"
,
"connectNulls"
:
false
,
"connectNulls"
:
false
,
"symbolSize"
:
4
,
"symbolSize"
:
4
,
"showSymbol"
:
true
,
"showSymbol"
:
true
,
...
@@ -119,7 +119,7 @@
...
@@ -119,7 +119,7 @@
},
},
{
{
"type"
:
"line"
,
"type"
:
"line"
,
"name"
:
"
student2
"
,
"name"
:
"
\u5c0f\u6770
"
,
"connectNulls"
:
false
,
"connectNulls"
:
false
,
"symbolSize"
:
4
,
"symbolSize"
:
4
,
"showSymbol"
:
true
,
"showSymbol"
:
true
,
...
@@ -189,7 +189,7 @@
...
@@ -189,7 +189,7 @@
},
},
{
{
"type"
:
"line"
,
"type"
:
"line"
,
"name"
:
"
student3
"
,
"name"
:
"
\u76ae\u76ae
"
,
"connectNulls"
:
false
,
"connectNulls"
:
false
,
"symbolSize"
:
4
,
"symbolSize"
:
4
,
"showSymbol"
:
true
,
"showSymbol"
:
true
,
...
@@ -261,14 +261,14 @@
...
@@ -261,14 +261,14 @@
"legend"
:
[
"legend"
:
[
{
{
"data"
:
[
"data"
:
[
"
student1
"
,
"
\u806a\u806a
"
,
"
student2
"
,
"
\u5c0f\u6770
"
,
"
student3
"
"
\u76ae\u76ae
"
],
],
"selected"
:
{
"selected"
:
{
"
student1
"
:
true
,
"
\u806a\u806a
"
:
true
,
"
student2
"
:
true
,
"
\u5c0f\u6770
"
:
true
,
"
student3
"
:
true
"
\u76ae\u76ae
"
:
true
}
}
}
}
],
],
...
@@ -348,7 +348,7 @@
...
@@ -348,7 +348,7 @@
}
}
]
]
};
};
chart_
955c2db251174535a998a4421da744ef
.
setOption
(
option_955c2db251174535a998a4421da744ef
);
chart_
08650cf04dec4bfcafd42a1a665a6ae6
.
setOption
(
option_08650cf04dec4bfcafd42a1a665a6ae6
);
</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