Commit bfe666f5 by BellCodeEditor

save project

parent 1716f04b
Showing with 9 additions and 9 deletions
......@@ -7,11 +7,11 @@
</head>
<body>
<div id="54c95abe0c754010990ae9e0cbb38ec8" class="chart-container" style="width:900px; height:500px;"></div>
<div id="b8f3617bf11f4a46b8c7d5347d3c3cbe" class="chart-container" style="width:900px; height:500px;"></div>
<script>
var chart_54c95abe0c754010990ae9e0cbb38ec8 = echarts.init(
document.getElementById('54c95abe0c754010990ae9e0cbb38ec8'), 'white', {renderer: 'canvas'});
var option_54c95abe0c754010990ae9e0cbb38ec8 = {
var chart_b8f3617bf11f4a46b8c7d5347d3c3cbe = echarts.init(
document.getElementById('b8f3617bf11f4a46b8c7d5347d3c3cbe'), 'white', {renderer: 'canvas'});
var option_b8f3617bf11f4a46b8c7d5347d3c3cbe = {
"animation": true,
"animationThreshold": 2000,
"animationDuration": 1000,
......@@ -165,7 +165,7 @@
}
]
};
chart_54c95abe0c754010990ae9e0cbb38ec8.setOption(option_54c95abe0c754010990ae9e0cbb38ec8);
chart_b8f3617bf11f4a46b8c7d5347d3c3cbe.setOption(option_b8f3617bf11f4a46b8c7d5347d3c3cbe);
</script>
</body>
</html>
from pyecharts.charts import Bar
bar=Bar()
subjects = ["语文","数学","英语","地理","历史","政治","生物","化学","物理"]
scores = [88, 95, 96, 94, 62, 66, 64, 93, 89]
bar=Bar()
bar.add_xaxis(["语文","数学","英语","地理","历史","政治","生物","化学","物理"])
bar.add_yaxis("浈浈成绩表",[88, 95, 96, 94, 62, 66, 64, 93, 89])
bar.add_xaxis(subjects)
bar.add_yaxis("浈浈成绩表",scores)
bar.render("111.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