Commit 8ce24902 by BellCodeEditor

auto save

parent 91dfdaaa
Showing with 21 additions and 17 deletions
...@@ -6,10 +6,13 @@ student2 = [128, 131, 132, 129, 130, 127, 129, 131, 132, 128] # 小杰 ...@@ -6,10 +6,13 @@ 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
line=line.add_xaxis(test) line=line.add_xaxis(test)
line=line.add_yaxis('1',student1) line=line.add_yaxis('student1',student1)
line=line.add_yaxis('2',student2) line=line.add_yaxis('student2',student2)
line=line.add_yaxis('3',student3) line=line.add_yaxis('student3',student3)
line.render() line.render()
\ No newline at end of file
...@@ -7,11 +7,11 @@ ...@@ -7,11 +7,11 @@
</head> </head>
<body> <body>
<div id="48652dcdfe2d4938b8072db84a591c14" class="chart-container" style="width:900px; height:500px;"></div> <div id="b079f2d69ba1425a896bdffded9351f1" class="chart-container" style="width:900px; height:500px;"></div>
<script> <script>
var chart_48652dcdfe2d4938b8072db84a591c14 = echarts.init( var chart_b079f2d69ba1425a896bdffded9351f1 = echarts.init(
document.getElementById('48652dcdfe2d4938b8072db84a591c14'), 'white', {renderer: 'canvas'}); document.getElementById('b079f2d69ba1425a896bdffded9351f1'), 'white', {renderer: 'canvas'});
var option_48652dcdfe2d4938b8072db84a591c14 = { var option_b079f2d69ba1425a896bdffded9351f1 = {
"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": "1", "name": "student1",
"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": "2", "name": "student2",
"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": "3", "name": "student3",
"connectNulls": false, "connectNulls": false,
"symbolSize": 4, "symbolSize": 4,
"showSymbol": true, "showSymbol": true,
...@@ -261,14 +261,14 @@ ...@@ -261,14 +261,14 @@
"legend": [ "legend": [
{ {
"data": [ "data": [
"1", "student1",
"2", "student2",
"3" "student3"
], ],
"selected": { "selected": {
"1": true, "student1": true,
"2": true, "student2": true,
"3": true "student3": true
} }
} }
], ],
...@@ -348,7 +348,7 @@ ...@@ -348,7 +348,7 @@
} }
] ]
}; };
chart_48652dcdfe2d4938b8072db84a591c14.setOption(option_48652dcdfe2d4938b8072db84a591c14); chart_b079f2d69ba1425a896bdffded9351f1.setOption(option_b079f2d69ba1425a896bdffded9351f1);
</script> </script>
</body> </body>
</html> </html>
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