Commit 6866ae85 by BellCodeEditor

auto save

parent 661d0a86
Showing with 43 additions and 42 deletions
......@@ -7,11 +7,11 @@
</head>
<body>
<div id="25bfdeb8c1bc49fc934b833002987029" class="chart-container" style="width:900px; height:500px;"></div>
<div id="1ca6d407151d41f79c7a5b6545978a4c" class="chart-container" style="width:900px; height:500px;"></div>
<script>
var chart_25bfdeb8c1bc49fc934b833002987029 = echarts.init(
document.getElementById('25bfdeb8c1bc49fc934b833002987029'), 'white', {renderer: 'canvas'});
var option_25bfdeb8c1bc49fc934b833002987029 = {
var chart_1ca6d407151d41f79c7a5b6545978a4c = echarts.init(
document.getElementById('1ca6d407151d41f79c7a5b6545978a4c'), 'white', {renderer: 'canvas'});
var option_1ca6d407151d41f79c7a5b6545978a4c = {
"animation": true,
"animationThreshold": 2000,
"animationDuration": 1000,
......@@ -59,43 +59,43 @@
"data": [
[
"\u7b2c1\u6b21",
89
75
],
[
"\u7b2c2\u6b21",
10
75
],
[
"\u7b2c3\u6b21",
78
75
],
[
"\u7b2c4\u6b21",
23
75
],
[
"\u7b2c5\u6b21",
129
75
],
[
"\u7b2c6\u6b21",
32
75
],
[
"\u7b2c7\u6b21",
86
75
],
[
"\u7b2c8\u6b21",
45
75
],
[
"\u7b2c9\u6b21",
84
75
],
[
"\u7b2c10\u6b21",
13
75
]
],
"hoverAnimation": true,
......@@ -119,7 +119,7 @@
},
{
"type": "line",
"name": "\u5c0f\u6770",
"name": "\u5c0f\u8d1d",
"connectNulls": false,
"symbolSize": 4,
"showSymbol": true,
......@@ -129,43 +129,43 @@
"data": [
[
"\u7b2c1\u6b21",
12
150
],
[
"\u7b2c2\u6b21",
113
150
],
[
"\u7b2c3\u6b21",
12
150
],
[
"\u7b2c4\u6b21",
112
150
],
[
"\u7b2c5\u6b21",
13
150
],
[
"\u7b2c6\u6b21",
112
150
],
[
"\u7b2c7\u6b21",
12
150
],
[
"\u7b2c8\u6b21",
113
150
],
[
"\u7b2c9\u6b21",
13
150
],
[
"\u7b2c10\u6b21",
122
150
]
],
"hoverAnimation": true,
......@@ -199,43 +199,43 @@
"data": [
[
"\u7b2c1\u6b21",
143
120
],
[
"\u7b2c2\u6b21",
45
120
],
[
"\u7b2c3\u6b21",
140
120
],
[
"\u7b2c4\u6b21",
33
120
],
[
"\u7b2c5\u6b21",
194
120
],
[
"\u7b2c6\u6b21",
76
120
],
[
"\u7b2c7\u6b21",
121
120
],
[
"\u7b2c8\u6b21",
20
120
],
[
"\u7b2c9\u6b21",
144
120
],
[
"\u7b2c10\u6b21",
35
120
]
],
"hoverAnimation": true,
......@@ -262,12 +262,12 @@
{
"data": [
"\u806a\u806a",
"\u5c0f\u6770",
"\u5c0f\u8d1d",
"\u76ae\u76ae"
],
"selected": {
"\u806a\u806a": true,
"\u5c0f\u6770": true,
"\u5c0f\u8d1d": true,
"\u76ae\u76ae": true
},
"show": true,
......@@ -357,7 +357,7 @@
"subtext": "\u9ad8254\u73ed\u6570\u5b66"
}
};
chart_25bfdeb8c1bc49fc934b833002987029.setOption(option_25bfdeb8c1bc49fc934b833002987029);
chart_1ca6d407151d41f79c7a5b6545978a4c.setOption(option_1ca6d407151d41f79c7a5b6545978a4c);
</script>
</body>
</html>
from pyecharts.charts import Line
test = ["第1次","第2次","第3次","第4次","第5次","第6次","第7次","第8次","第9次","第10次"]
student1 = [89, 10, 78, 23, 129, 32, 86, 45, 84, 13] # 聪聪
student2 = [12, 113, 12, 112, 13, 112, 12, 113, 13, 122] # 小杰
student3 = [143, 45, 140, 33, 194, 76, 121, 20, 144, 35] # 皮皮
student1 = [75, 75, 75, 75, 75, 75, 75, 75, 75, 75] # 聪聪
student2 = [150, 150, 150, 150, 150, 150, 150, 150, 150, 150] # 小杰
student3 = [120, 120, 120, 120, 120, 120, 120,120, 120, 120] # 皮皮
line = Line()
line.add_xaxis(test)
line.add_yaxis("聪聪", student1)
line.add_yaxis("小", student2)
line.add_yaxis("小", student2)
line.add_yaxis("皮皮", student3)
line.set_global_opts(title_opts={"text":"成绩走势图","subtext":"高254班数学"})
line.render("analysis.html")
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment