Commit a49c3f14 by BellCodeEditor

auto save

parent f7a7db4f
Showing with 10 additions and 10 deletions
from pyecharts.charts import Bar from pyecharts.charts import Bar
bar=Bar() bar=Bar()
bar.add_xaxis(["语文","数学","英语","地理","历史","政治","生物","化学","物理"]) bar.add_xaxis(["语文","数学","英语","地理","历史","政治","生物","化学","物理"])
bar.add_yaxis("成绩",[54088, 54088, 54088, 54088, 54088, 54088, 54088, 54088, 54088]) bar.add_yaxis("成绩",[54088, 14524, 54088, 14524, 54088, 14524, 54088, 14524, 54088])
bar.render() bar.render()
...@@ -7,11 +7,11 @@ ...@@ -7,11 +7,11 @@
</head> </head>
<body> <body>
<div id="344f48e7919e4d6781874d20d7d3e344" class="chart-container" style="width:900px; height:500px;"></div> <div id="3e684681ef6749fb8e8ebe2e7a251144" class="chart-container" style="width:900px; height:500px;"></div>
<script> <script>
var chart_344f48e7919e4d6781874d20d7d3e344 = echarts.init( var chart_3e684681ef6749fb8e8ebe2e7a251144 = echarts.init(
document.getElementById('344f48e7919e4d6781874d20d7d3e344'), 'white', {renderer: 'canvas'}); document.getElementById('3e684681ef6749fb8e8ebe2e7a251144'), 'white', {renderer: 'canvas'});
var option_344f48e7919e4d6781874d20d7d3e344 = { var option_3e684681ef6749fb8e8ebe2e7a251144 = {
"animation": true, "animation": true,
"animationThreshold": 2000, "animationThreshold": 2000,
"animationDuration": 1000, "animationDuration": 1000,
...@@ -53,13 +53,13 @@ ...@@ -53,13 +53,13 @@
"legendHoverLink": true, "legendHoverLink": true,
"data": [ "data": [
54088, 54088,
14524,
54088, 54088,
14524,
54088, 54088,
14524,
54088, 54088,
54088, 14524,
54088,
54088,
54088,
54088 54088
], ],
"showBackground": false, "showBackground": false,
...@@ -165,7 +165,7 @@ ...@@ -165,7 +165,7 @@
} }
] ]
}; };
chart_344f48e7919e4d6781874d20d7d3e344.setOption(option_344f48e7919e4d6781874d20d7d3e344); chart_3e684681ef6749fb8e8ebe2e7a251144.setOption(option_3e684681ef6749fb8e8ebe2e7a251144);
</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