Commit 728ae330 by BellCodeEditor

save project

parent e06ad800
Showing with 16 additions and 15 deletions
......@@ -7,11 +7,11 @@
</head>
<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>
var chart_c8aa2f19b96c427b9f667fca15b33d6f = echarts.init(
document.getElementById('c8aa2f19b96c427b9f667fca15b33d6f'), 'white', {renderer: 'canvas'});
var option_c8aa2f19b96c427b9f667fca15b33d6f = {
var chart_a00dd79929ba4dd7b476bd67ae5d8c0e = echarts.init(
document.getElementById('a00dd79929ba4dd7b476bd67ae5d8c0e'), 'white', {renderer: 'canvas'});
var option_a00dd79929ba4dd7b476bd67ae5d8c0e = {
"animation": true,
"animationThreshold": 2000,
"animationDuration": 1000,
......@@ -52,15 +52,15 @@
"name": "\u5206\u6570",
"legendHoverLink": true,
"data": [
88,
95,
96,
94,
62,
66,
64,
999,
89
1,
2,
3,
4,
5,
6,
7,
99999999999999,
9
],
"showBackground": false,
"barMinHeight": 0,
......@@ -165,7 +165,7 @@
}
]
};
chart_c8aa2f19b96c427b9f667fca15b33d6f.setOption(option_c8aa2f19b96c427b9f667fca15b33d6f);
chart_a00dd79929ba4dd7b476bd67ae5d8c0e.setOption(option_a00dd79929ba4dd7b476bd67ae5d8c0e);
</script>
</body>
</html>
from pyecharts.charts import Bar
bar = Bar()
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")
\ 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