Commit 8d99f8e1 by BellCodeEditor

save project

parent cc11e1b8
Showing with 10 additions and 7 deletions
......@@ -7,11 +7,11 @@
</head>
<body>
<div id="2c2eb9d727f94471a2ae5b221500d7e6" class="chart-container" style="width:900px; height:500px;"></div>
<div id="aa840786cebb48999ceb0d56fb507c8f" class="chart-container" style="width:900px; height:500px;"></div>
<script>
var chart_2c2eb9d727f94471a2ae5b221500d7e6 = echarts.init(
document.getElementById('2c2eb9d727f94471a2ae5b221500d7e6'), 'white', {renderer: 'canvas'});
var option_2c2eb9d727f94471a2ae5b221500d7e6 = {
var chart_aa840786cebb48999ceb0d56fb507c8f = echarts.init(
document.getElementById('aa840786cebb48999ceb0d56fb507c8f'), 'white', {renderer: 'canvas'});
var option_aa840786cebb48999ceb0d56fb507c8f = {
"animation": true,
"animationThreshold": 2000,
"animationDuration": 1000,
......@@ -58,6 +58,7 @@
88
],
"showBackground": false,
"barWidth": 40,
"barMinHeight": 0,
"barCategoryGap": "20%",
"barGap": "30%",
......@@ -85,6 +86,7 @@
90
],
"showBackground": false,
"barWidth": 40,
"barMinHeight": 0,
"barCategoryGap": "20%",
"barGap": "30%",
......@@ -184,7 +186,7 @@
}
]
};
chart_2c2eb9d727f94471a2ae5b221500d7e6.setOption(option_2c2eb9d727f94471a2ae5b221500d7e6);
chart_aa840786cebb48999ceb0d56fb507c8f.setOption(option_aa840786cebb48999ceb0d56fb507c8f);
</script>
</body>
</html>
......@@ -6,6 +6,6 @@ scores2 = [95, 79, 93, 90] # 期末成绩
bar=Bar()
bar.add_xaxis(subjects)
bar.add_yaxis("期中成绩",scores1)
bar.add_yaxis("期末成绩",scores2)
bar.add_yaxis("期中成绩",scores1,bar_width=40)
bar.add_yaxis("期末成绩",scores2,bar_width=40)
bar.render("cheng.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