Commit 1d50bb37 by BellCodeEditor

save project

parent c49281ef
Showing with 9 additions and 9 deletions
from pyecharts.charts import Bar from pyecharts.charts import Bar
bar=Bar() bar=Bar()
bar.add_xaxis(["语文","数学","英语","地理","历史","政治","生物","化学","物理"]) 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() bar.render()
...@@ -7,11 +7,11 @@ ...@@ -7,11 +7,11 @@
</head> </head>
<body> <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> <script>
var chart_a50c69e16f954ed19cb561811fcf9dc1 = echarts.init( var chart_f40b89f668224595acb153ede2e54951 = echarts.init(
document.getElementById('a50c69e16f954ed19cb561811fcf9dc1'), 'white', {renderer: 'canvas'}); document.getElementById('f40b89f668224595acb153ede2e54951'), 'white', {renderer: 'canvas'});
var option_a50c69e16f954ed19cb561811fcf9dc1 = { var option_f40b89f668224595acb153ede2e54951 = {
"animation": true, "animation": true,
"animationThreshold": 2000, "animationThreshold": 2000,
"animationDuration": 1000, "animationDuration": 1000,
...@@ -56,11 +56,11 @@ ...@@ -56,11 +56,11 @@
-456, -456,
-6272, -6272,
8172, 8172,
80, 850,
-826, -826,
-7824, -7824,
-5283, -5553,
-52828 -5828
], ],
"showBackground": false, "showBackground": false,
"barMinHeight": 0, "barMinHeight": 0,
...@@ -165,7 +165,7 @@ ...@@ -165,7 +165,7 @@
} }
] ]
}; };
chart_a50c69e16f954ed19cb561811fcf9dc1.setOption(option_a50c69e16f954ed19cb561811fcf9dc1); chart_f40b89f668224595acb153ede2e54951.setOption(option_f40b89f668224595acb153ede2e54951);
</script> </script>
</body> </body>
</html> </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