Commit 530a8334 by BellCodeEditor

save project

parent 52725462
Showing with 10 additions and 9 deletions
...@@ -7,11 +7,11 @@ ...@@ -7,11 +7,11 @@
</head> </head>
<body> <body>
<div id="a375f2eb63b44f16b0ca36efd9fc474b" class="chart-container" style="width:900px; height:500px;"></div> <div id="660d56f28204424b908411062e041c43" class="chart-container" style="width:900px; height:500px;"></div>
<script> <script>
var chart_a375f2eb63b44f16b0ca36efd9fc474b = echarts.init( var chart_660d56f28204424b908411062e041c43 = echarts.init(
document.getElementById('a375f2eb63b44f16b0ca36efd9fc474b'), 'white', {renderer: 'canvas'}); document.getElementById('660d56f28204424b908411062e041c43'), 'white', {renderer: 'canvas'});
var option_a375f2eb63b44f16b0ca36efd9fc474b = { var option_660d56f28204424b908411062e041c43 = {
"animation": true, "animation": true,
"animationThreshold": 2000, "animationThreshold": 2000,
"animationDuration": 1000, "animationDuration": 1000,
...@@ -80,10 +80,10 @@ ...@@ -80,10 +80,10 @@
"name": "\u671f\u672b", "name": "\u671f\u672b",
"legendHoverLink": true, "legendHoverLink": true,
"data": [ "data": [
92,
95, 95,
82, 79,
88 93,
90
], ],
"showBackground": false, "showBackground": false,
"barWidth": 40, "barWidth": 40,
...@@ -186,7 +186,7 @@ ...@@ -186,7 +186,7 @@
} }
] ]
}; };
chart_a375f2eb63b44f16b0ca36efd9fc474b.setOption(option_a375f2eb63b44f16b0ca36efd9fc474b); chart_660d56f28204424b908411062e041c43.setOption(option_660d56f28204424b908411062e041c43);
</script> </script>
</body> </body>
</html> </html>
...@@ -7,5 +7,5 @@ scores2 = [95, 79, 93, 90] # 期末成绩 ...@@ -7,5 +7,5 @@ scores2 = [95, 79, 93, 90] # 期末成绩
bar=Bar() bar=Bar()
bar.add_xaxis(subjects ) bar.add_xaxis(subjects )
bar.add_yaxis("期中",scores1,bar_width=40) bar.add_yaxis("期中",scores1,bar_width=40)
bar.add_yaxis("期末",scores1,bar_width=40) bar.add_yaxis("期末",scores2,bar_width=40)
bar.render("223.html") bar.render("223.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