Commit 1a286a12 by BellCodeEditor

save project

parent cb0c4341
Showing with 13 additions and 13 deletions
...@@ -7,11 +7,11 @@ ...@@ -7,11 +7,11 @@
</head> </head>
<body> <body>
<div id="8fe1bcd4fa7442b4bccea887f3c4ae49" class="chart-container" style="width:900px; height:500px;"></div> <div id="864c4112cab9484388771c57d33ec2e4" class="chart-container" style="width:900px; height:500px;"></div>
<script> <script>
var chart_8fe1bcd4fa7442b4bccea887f3c4ae49 = echarts.init( var chart_864c4112cab9484388771c57d33ec2e4 = echarts.init(
document.getElementById('8fe1bcd4fa7442b4bccea887f3c4ae49'), 'white', {renderer: 'canvas'}); document.getElementById('864c4112cab9484388771c57d33ec2e4'), 'white', {renderer: 'canvas'});
var option_8fe1bcd4fa7442b4bccea887f3c4ae49 = { var option_864c4112cab9484388771c57d33ec2e4 = {
"animation": true, "animation": true,
"animationThreshold": 2000, "animationThreshold": 2000,
"animationDuration": 1000, "animationDuration": 1000,
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
], ],
[ [
"\u7b2c5\u6b21", "\u7b2c5\u6b21",
129 0
], ],
[ [
"\u7b2c6\u6b21", "\u7b2c6\u6b21",
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
], ],
[ [
"\u7b2c9\u6b21", "\u7b2c9\u6b21",
144 0
], ],
[ [
"\u7b2c10\u6b21", "\u7b2c10\u6b21",
...@@ -149,7 +149,7 @@ ...@@ -149,7 +149,7 @@
], ],
[ [
"\u7b2c6\u6b21", "\u7b2c6\u6b21",
127 0
], ],
[ [
"\u7b2c7\u6b21", "\u7b2c7\u6b21",
...@@ -161,7 +161,7 @@ ...@@ -161,7 +161,7 @@
], ],
[ [
"\u7b2c9\u6b21", "\u7b2c9\u6b21",
132 0
], ],
[ [
"\u7b2c10\u6b21", "\u7b2c10\u6b21",
...@@ -235,7 +235,7 @@ ...@@ -235,7 +235,7 @@
], ],
[ [
"\u7b2c10\u6b21", "\u7b2c10\u6b21",
105 20
] ]
], ],
"hoverAnimation": true, "hoverAnimation": true,
...@@ -357,7 +357,7 @@ ...@@ -357,7 +357,7 @@
"student": "\u5355\u4f4d:mm" "student": "\u5355\u4f4d:mm"
} }
}; };
chart_8fe1bcd4fa7442b4bccea887f3c4ae49.setOption(option_8fe1bcd4fa7442b4bccea887f3c4ae49); chart_864c4112cab9484388771c57d33ec2e4.setOption(option_864c4112cab9484388771c57d33ec2e4);
</script> </script>
</body> </body>
</html> </html>
from pyecharts.charts import Line from pyecharts.charts import Line
test = ["第1次","第2次","第3次","第4次","第5次","第6次","第7次","第8次","第9次","第10次"] test = ["第1次","第2次","第3次","第4次","第5次","第6次","第7次","第8次","第9次","第10次"]
student1 = [112, 110, 118, 124, 129, 132, 136, 139, 144, 143] # 聪聪 student1 = [112, 110, 118, 124, 0, 132, 136, 139, 0, 143] # 聪聪
student2 = [128, 131, 132, 129, 130, 127, 129, 131, 132, 128] # 小杰 student2 = [128, 131, 132, 129, 130, 0, 129, 131, 0, 128] # 小杰
student3 = [143, 145, 140, 133, 134, 126, 121, 120, 114, 105] # 皮皮 student3 = [143, 145, 140, 133, 134, 126, 121, 120, 114, 20] # 皮皮
a = Line() a = Line()
a.add_xaxis(test) a.add_xaxis(test)
a.add_yaxis('聪聪',student1) a.add_yaxis('聪聪',student1)
......
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