Commit 2ee677bb by BellCodeEditor

save project

parent 5e2be5cf
Showing with 15 additions and 12 deletions
...@@ -7,11 +7,11 @@ ...@@ -7,11 +7,11 @@
</head> </head>
<body> <body>
<div id="64a198801ce84dd38ac45d473617fef2" class="chart-container" style="width:900px; height:500px;"></div> <div id="98e21bebaf7643d993e831825ff570cd" class="chart-container" style="width:900px; height:500px;"></div>
<script> <script>
var chart_64a198801ce84dd38ac45d473617fef2 = echarts.init( var chart_98e21bebaf7643d993e831825ff570cd = echarts.init(
document.getElementById('64a198801ce84dd38ac45d473617fef2'), 'white', {renderer: 'canvas'}); document.getElementById('98e21bebaf7643d993e831825ff570cd'), 'white', {renderer: 'canvas'});
var option_64a198801ce84dd38ac45d473617fef2 = { var option_98e21bebaf7643d993e831825ff570cd = {
"animation": true, "animation": true,
"animationThreshold": 2000, "animationThreshold": 2000,
"animationDuration": 1000, "animationDuration": 1000,
...@@ -119,7 +119,7 @@ ...@@ -119,7 +119,7 @@
}, },
{ {
"type": "line", "type": "line",
"name": "a", "name": "b",
"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": "a", "name": "c",
"connectNulls": false, "connectNulls": false,
"symbolSize": 4, "symbolSize": 4,
"showSymbol": true, "showSymbol": true,
...@@ -262,11 +262,13 @@ ...@@ -262,11 +262,13 @@
{ {
"data": [ "data": [
"a", "a",
"a", "b",
"a" "c"
], ],
"selected": { "selected": {
"a": true "a": true,
"b": true,
"c": true
} }
} }
], ],
...@@ -346,7 +348,7 @@ ...@@ -346,7 +348,7 @@
} }
] ]
}; };
chart_64a198801ce84dd38ac45d473617fef2.setOption(option_64a198801ce84dd38ac45d473617fef2); chart_98e21bebaf7643d993e831825ff570cd.setOption(option_98e21bebaf7643d993e831825ff570cd);
</script> </script>
</body> </body>
</html> </html>
...@@ -7,6 +7,6 @@ student3 = [143, 145, 140, 133, 134, 126, 121, 120, 114, 105] # 皮皮 ...@@ -7,6 +7,6 @@ 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("a",student1) line.add_yaxis("a",student1)
line.add_yaxis("a",student2) line.add_yaxis("b",student2)
line.add_yaxis("a",student3) line.add_yaxis("c",student3)
line.render("abc.html") line.render("abc.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