Commit 728ae330 by BellCodeEditor

save project

parent e06ad800
Showing with 16 additions and 15 deletions
...@@ -7,11 +7,11 @@ ...@@ -7,11 +7,11 @@
</head> </head>
<body> <body>
<div id="c8aa2f19b96c427b9f667fca15b33d6f" class="chart-container" style="width:900px; height:500px;"></div> <div id="a00dd79929ba4dd7b476bd67ae5d8c0e" class="chart-container" style="width:900px; height:500px;"></div>
<script> <script>
var chart_c8aa2f19b96c427b9f667fca15b33d6f = echarts.init( var chart_a00dd79929ba4dd7b476bd67ae5d8c0e = echarts.init(
document.getElementById('c8aa2f19b96c427b9f667fca15b33d6f'), 'white', {renderer: 'canvas'}); document.getElementById('a00dd79929ba4dd7b476bd67ae5d8c0e'), 'white', {renderer: 'canvas'});
var option_c8aa2f19b96c427b9f667fca15b33d6f = { var option_a00dd79929ba4dd7b476bd67ae5d8c0e = {
"animation": true, "animation": true,
"animationThreshold": 2000, "animationThreshold": 2000,
"animationDuration": 1000, "animationDuration": 1000,
...@@ -52,15 +52,15 @@ ...@@ -52,15 +52,15 @@
"name": "\u5206\u6570", "name": "\u5206\u6570",
"legendHoverLink": true, "legendHoverLink": true,
"data": [ "data": [
88, 1,
95, 2,
96, 3,
94, 4,
62, 5,
66, 6,
64, 7,
999, 99999999999999,
89 9
], ],
"showBackground": false, "showBackground": false,
"barMinHeight": 0, "barMinHeight": 0,
...@@ -165,7 +165,7 @@ ...@@ -165,7 +165,7 @@
} }
] ]
}; };
chart_c8aa2f19b96c427b9f667fca15b33d6f.setOption(option_c8aa2f19b96c427b9f667fca15b33d6f); chart_a00dd79929ba4dd7b476bd67ae5d8c0e.setOption(option_a00dd79929ba4dd7b476bd67ae5d8c0e);
</script> </script>
</body> </body>
</html> </html>
from pyecharts.charts import Bar from pyecharts.charts import Bar
bar = Bar() bar = Bar()
bar.add_xaxis(["语文","数学","英语","地理","历史","政治","生物","化学","物理"]) bar.add_xaxis(["语文","数学","英语","地理","历史","政治","生物","化学","物理"])
bar.add_yaxis("分数",[88, 95, 96, 94, 62, 66, 64, 999, 89]) bar.add_yaxis("分数",[1, 2, 3, 4, 5, 6, 7, 99999999999999, 9])
bar.render("123.html") bar.render("123.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