Commit 78669d5e by BellCodeEditor

auto save

parent bdb79da6
Showing with 10 additions and 7 deletions
......@@ -7,11 +7,11 @@
</head>
<body>
<div id="ec63cb98ff2e451c879b51122ac947de" class="chart-container" style="width:900px; height:500px;"></div>
<div id="ef07165cd1704eb79c0bb19c9bc42f97" class="chart-container" style="width:900px; height:500px;"></div>
<script>
var chart_ec63cb98ff2e451c879b51122ac947de = echarts.init(
document.getElementById('ec63cb98ff2e451c879b51122ac947de'), 'white', {renderer: 'canvas'});
var option_ec63cb98ff2e451c879b51122ac947de = {
var chart_ef07165cd1704eb79c0bb19c9bc42f97 = echarts.init(
document.getElementById('ef07165cd1704eb79c0bb19c9bc42f97'), 'white', {renderer: 'canvas'});
var option_ef07165cd1704eb79c0bb19c9bc42f97 = {
"animation": true,
"animationThreshold": 2000,
"animationDuration": 1000,
......@@ -21,6 +21,7 @@
"animationEasingUpdate": "cubicOut",
"animationDelayUpdate": 0,
"color": [
"pink",
"#c23531",
"#2f4554",
"#61a0a8",
......@@ -58,6 +59,7 @@
88
],
"showBackground": false,
"barWidth": 40,
"barMinHeight": 0,
"barCategoryGap": "20%",
"barGap": "30%",
......@@ -184,7 +186,7 @@
}
]
};
chart_ec63cb98ff2e451c879b51122ac947de.setOption(option_ec63cb98ff2e451c879b51122ac947de);
chart_ef07165cd1704eb79c0bb19c9bc42f97.setOption(option_ef07165cd1704eb79c0bb19c9bc42f97);
</script>
</body>
</html>
......@@ -8,7 +8,7 @@ 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,color="pink")
bar.render("demo.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