Commit 1d50bb37 by BellCodeEditor

save project

parent c49281ef
Showing with 9 additions and 9 deletions
from pyecharts.charts import Bar
bar=Bar()
bar.add_xaxis(["语文","数学","英语","地理","历史","政治","生物","化学","物理"])
bar.add_yaxis("殷秋实各科成绩",[100, -456, -6272, 8172, 80, -826, -7824, -5283, -52828])
bar.add_yaxis("殷秋实各科成绩",[100, 56, 72, 81, 50, 26, 24, 53, 28])
bar.render()
......@@ -7,11 +7,11 @@
</head>
<body>
<div id="a50c69e16f954ed19cb561811fcf9dc1" class="chart-container" style="width:900px; height:500px;"></div>
<div id="f40b89f668224595acb153ede2e54951" class="chart-container" style="width:900px; height:500px;"></div>
<script>
var chart_a50c69e16f954ed19cb561811fcf9dc1 = echarts.init(
document.getElementById('a50c69e16f954ed19cb561811fcf9dc1'), 'white', {renderer: 'canvas'});
var option_a50c69e16f954ed19cb561811fcf9dc1 = {
var chart_f40b89f668224595acb153ede2e54951 = echarts.init(
document.getElementById('f40b89f668224595acb153ede2e54951'), 'white', {renderer: 'canvas'});
var option_f40b89f668224595acb153ede2e54951 = {
"animation": true,
"animationThreshold": 2000,
"animationDuration": 1000,
......@@ -56,11 +56,11 @@
-456,
-6272,
8172,
80,
850,
-826,
-7824,
-5283,
-52828
-5553,
-5828
],
"showBackground": false,
"barMinHeight": 0,
......@@ -165,7 +165,7 @@
}
]
};
chart_a50c69e16f954ed19cb561811fcf9dc1.setOption(option_a50c69e16f954ed19cb561811fcf9dc1);
chart_f40b89f668224595acb153ede2e54951.setOption(option_f40b89f668224595acb153ede2e54951);
</script>
</body>
</html>
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