Commit 78669d5e by BellCodeEditor

auto save

parent bdb79da6
Showing with 10 additions and 7 deletions
...@@ -7,11 +7,11 @@ ...@@ -7,11 +7,11 @@
</head> </head>
<body> <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> <script>
var chart_ec63cb98ff2e451c879b51122ac947de = echarts.init( var chart_ef07165cd1704eb79c0bb19c9bc42f97 = echarts.init(
document.getElementById('ec63cb98ff2e451c879b51122ac947de'), 'white', {renderer: 'canvas'}); document.getElementById('ef07165cd1704eb79c0bb19c9bc42f97'), 'white', {renderer: 'canvas'});
var option_ec63cb98ff2e451c879b51122ac947de = { var option_ef07165cd1704eb79c0bb19c9bc42f97 = {
"animation": true, "animation": true,
"animationThreshold": 2000, "animationThreshold": 2000,
"animationDuration": 1000, "animationDuration": 1000,
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
"animationEasingUpdate": "cubicOut", "animationEasingUpdate": "cubicOut",
"animationDelayUpdate": 0, "animationDelayUpdate": 0,
"color": [ "color": [
"pink",
"#c23531", "#c23531",
"#2f4554", "#2f4554",
"#61a0a8", "#61a0a8",
...@@ -58,6 +59,7 @@ ...@@ -58,6 +59,7 @@
88 88
], ],
"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_ec63cb98ff2e451c879b51122ac947de.setOption(option_ec63cb98ff2e451c879b51122ac947de); chart_ef07165cd1704eb79c0bb19c9bc42f97.setOption(option_ef07165cd1704eb79c0bb19c9bc42f97);
</script> </script>
</body> </body>
</html> </html>
...@@ -8,7 +8,7 @@ bar=Bar() ...@@ -8,7 +8,7 @@ bar=Bar()
bar.add_xaxis(subjects) bar.add_xaxis(subjects)
bar.add_yaxis("期中",scores1) bar.add_yaxis("期中",scores1,bar_width=40)
bar.add_yaxis("期末",scores2) bar.add_yaxis("期末",scores2,color="pink")
bar.render("demo.html") 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