Commit 1cc14d97 by BellCodeEditor

auto save

parent eeec02e0
Showing with 9 additions and 9 deletions
......@@ -7,11 +7,11 @@
</head>
<body>
<div id="061f7dd6e65d4096be10e03e3c95a1eb" class="chart-container" style="width:900px; height:500px;"></div>
<div id="86c1e9ecc30341e0ba5f56806074ae87" class="chart-container" style="width:900px; height:500px;"></div>
<script>
var chart_061f7dd6e65d4096be10e03e3c95a1eb = echarts.init(
document.getElementById('061f7dd6e65d4096be10e03e3c95a1eb'), 'white', {renderer: 'canvas'});
var option_061f7dd6e65d4096be10e03e3c95a1eb = {
var chart_86c1e9ecc30341e0ba5f56806074ae87 = echarts.init(
document.getElementById('86c1e9ecc30341e0ba5f56806074ae87'), 'white', {renderer: 'canvas'});
var option_86c1e9ecc30341e0ba5f56806074ae87 = {
"animation": true,
"animationThreshold": 2000,
"animationDuration": 1000,
......@@ -55,7 +55,7 @@
92,
95,
82,
88
32
],
"showBackground": false,
"barWidth": 40,
......@@ -83,7 +83,7 @@
95,
79,
93,
90
27
],
"showBackground": false,
"barWidth": 40,
......@@ -186,7 +186,7 @@
}
]
};
chart_061f7dd6e65d4096be10e03e3c95a1eb.setOption(option_061f7dd6e65d4096be10e03e3c95a1eb);
chart_86c1e9ecc30341e0ba5f56806074ae87.setOption(option_86c1e9ecc30341e0ba5f56806074ae87);
</script>
</body>
</html>
from pyecharts.charts import Bar
subjects = ["浈浈", "聪聪", "小智", "波奇(成绩已作废)"]
scores1 = [92, 95, 82, 88] # 期中成绩
scores2 = [95, 79, 93, 90] # 期末成绩
scores1 = [92, 95, 82, 32] # 期中成绩
scores2 = [95, 79, 93, 27] # 期末成绩
bar=Bar()
bar.add_xaxis(subjects)
......
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