Commit 02f42201 by BellCodeEditor

save project

parent a847c8b1
Showing with 10 additions and 9 deletions
...@@ -7,11 +7,11 @@ ...@@ -7,11 +7,11 @@
</head> </head>
<body> <body>
<div id="d32946d3b82042e69d6834568c8989d8" class="chart-container" style="width:900px; height:500px;"></div> <div id="e29c20508f8c427196d9b77eab936c8d" class="chart-container" style="width:900px; height:500px;"></div>
<script> <script>
var chart_d32946d3b82042e69d6834568c8989d8 = echarts.init( var chart_e29c20508f8c427196d9b77eab936c8d = echarts.init(
document.getElementById('d32946d3b82042e69d6834568c8989d8'), 'white', {renderer: 'canvas'}); document.getElementById('e29c20508f8c427196d9b77eab936c8d'), 'white', {renderer: 'canvas'});
var option_d32946d3b82042e69d6834568c8989d8 = { var option_e29c20508f8c427196d9b77eab936c8d = {
"animation": true, "animation": true,
"animationThreshold": 2000, "animationThreshold": 2000,
"animationDuration": 1000, "animationDuration": 1000,
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
}, },
{ {
"type": "bar", "type": "bar",
"name": "\u671f\u4e2d", "name": "\u671f\u672b",
"legendHoverLink": true, "legendHoverLink": true,
"data": [ "data": [
5, 5,
...@@ -108,10 +108,11 @@ ...@@ -108,10 +108,11 @@
{ {
"data": [ "data": [
"\u671f\u4e2d", "\u671f\u4e2d",
"\u671f\u4e2d" "\u671f\u672b"
], ],
"selected": { "selected": {
"\u671f\u4e2d": true "\u671f\u4e2d": true,
"\u671f\u672b": true
} }
} }
], ],
...@@ -185,7 +186,7 @@ ...@@ -185,7 +186,7 @@
} }
] ]
}; };
chart_d32946d3b82042e69d6834568c8989d8.setOption(option_d32946d3b82042e69d6834568c8989d8); chart_e29c20508f8c427196d9b77eab936c8d.setOption(option_e29c20508f8c427196d9b77eab936c8d);
</script> </script>
</body> </body>
</html> </html>
...@@ -8,6 +8,6 @@ bar = Bar() ...@@ -8,6 +8,6 @@ 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("期", scores2, bar_width=40) bar.add_yaxis("期", scores2, bar_width=40)
bar.render("analysis.html") bar.render("analysis.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