Commit a978ebde by BellCodeEditor

save project

parent 96cc555b
Showing with 10 additions and 9 deletions
......@@ -7,11 +7,11 @@
</head>
<body>
<div id="36faf116447a4c29bd39ffe57fd0aaba" class="chart-container" style="width:900px; height:500px;"></div>
<div id="7ce2bd929dcd4a42af1371539a02cdaf" class="chart-container" style="width:900px; height:500px;"></div>
<script>
var chart_36faf116447a4c29bd39ffe57fd0aaba = echarts.init(
document.getElementById('36faf116447a4c29bd39ffe57fd0aaba'), 'white', {renderer: 'canvas'});
var option_36faf116447a4c29bd39ffe57fd0aaba = {
var chart_7ce2bd929dcd4a42af1371539a02cdaf = echarts.init(
document.getElementById('7ce2bd929dcd4a42af1371539a02cdaf'), 'white', {renderer: 'canvas'});
var option_7ce2bd929dcd4a42af1371539a02cdaf = {
"animation": true,
"animationThreshold": 2000,
"animationDuration": 1000,
......@@ -58,7 +58,7 @@
88
],
"showBackground": false,
"barWidth": 30,
"barWidth": 40,
"barMinHeight": 0,
"barCategoryGap": "20%",
"barGap": "30%",
......@@ -86,7 +86,7 @@
90
],
"showBackground": false,
"barWidth": 30,
"barWidth": 40,
"barMinHeight": 0,
"barCategoryGap": "20%",
"barGap": "30%",
......@@ -186,7 +186,7 @@
}
]
};
chart_36faf116447a4c29bd39ffe57fd0aaba.setOption(option_36faf116447a4c29bd39ffe57fd0aaba);
chart_7ce2bd929dcd4a42af1371539a02cdaf.setOption(option_7ce2bd929dcd4a42af1371539a02cdaf);
</script>
</body>
</html>
......@@ -5,6 +5,6 @@ scores1 = [92, 95, 82, 88] # 期中成绩
scores2 = [95, 79, 93, 90] # 期末成绩
bar = Bar()
bar.add_xaxis(subjects)
bar.add_yaxis("期中成绩",scores1,bar_width=50)
bar.add_yaxis("期末成绩",scores2,bar_width=50)
bar.add_yaxis("期中成绩",scores1,bar_width=40)
bar.add_yaxis("期末成绩",scores2,bar_width=40)
bar.render("chengji.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