Commit 00764afc by BellCodeEditor

save project

parent eced055b
Showing with 9 additions and 6 deletions
...@@ -6,5 +6,5 @@ scores2 = [95, 79, 93, 90] # 期末成绩 ...@@ -6,5 +6,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("期末成绩",scores2,bae_width=40) bar.add_yaxis("期末成绩",scores2,bar_width=40)
bar.render() bar.render()
\ No newline at end of file
...@@ -7,11 +7,11 @@ ...@@ -7,11 +7,11 @@
</head> </head>
<body> <body>
<div id="ce5b7ed24ad349c3a8161b1d6f82d6d8" class="chart-container" style="width:900px; height:500px;"></div> <div id="2f49826395cf46fd801e3838c6d33490" class="chart-container" style="width:900px; height:500px;"></div>
<script> <script>
var chart_ce5b7ed24ad349c3a8161b1d6f82d6d8 = echarts.init( var chart_2f49826395cf46fd801e3838c6d33490 = echarts.init(
document.getElementById('ce5b7ed24ad349c3a8161b1d6f82d6d8'), 'white', {renderer: 'canvas'}); document.getElementById('2f49826395cf46fd801e3838c6d33490'), 'white', {renderer: 'canvas'});
var option_ce5b7ed24ad349c3a8161b1d6f82d6d8 = { var option_2f49826395cf46fd801e3838c6d33490 = {
"animation": true, "animation": true,
"animationThreshold": 2000, "animationThreshold": 2000,
"animationDuration": 1000, "animationDuration": 1000,
...@@ -58,6 +58,7 @@ ...@@ -58,6 +58,7 @@
88 88
], ],
"showBackground": false, "showBackground": false,
"barWidth": 40,
"barMinHeight": 0, "barMinHeight": 0,
"barCategoryGap": "20%", "barCategoryGap": "20%",
"barGap": "30%", "barGap": "30%",
...@@ -85,6 +86,7 @@ ...@@ -85,6 +86,7 @@
90 90
], ],
"showBackground": false, "showBackground": false,
"barWidth": 40,
"barMinHeight": 0, "barMinHeight": 0,
"barCategoryGap": "20%", "barCategoryGap": "20%",
"barGap": "30%", "barGap": "30%",
...@@ -184,7 +186,7 @@ ...@@ -184,7 +186,7 @@
} }
] ]
}; };
chart_ce5b7ed24ad349c3a8161b1d6f82d6d8.setOption(option_ce5b7ed24ad349c3a8161b1d6f82d6d8); chart_2f49826395cf46fd801e3838c6d33490.setOption(option_2f49826395cf46fd801e3838c6d33490);
</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