Commit f9316fc7 by BellCodeEditor

save project

parent 32412579
Showing with 13 additions and 13 deletions
......@@ -7,11 +7,11 @@
</head>
<body>
<div id="117e298ac73840919cb27e27a8370db7" class="chart-container" style="width:900px; height:500px;"></div>
<div id="d2318041390e43d6a43040d895727152" class="chart-container" style="width:900px; height:500px;"></div>
<script>
var chart_117e298ac73840919cb27e27a8370db7 = echarts.init(
document.getElementById('117e298ac73840919cb27e27a8370db7'), 'white', {renderer: 'canvas'});
var option_117e298ac73840919cb27e27a8370db7 = {
var chart_d2318041390e43d6a43040d895727152 = echarts.init(
document.getElementById('d2318041390e43d6a43040d895727152'), 'white', {renderer: 'canvas'});
var option_d2318041390e43d6a43040d895727152 = {
"animation": true,
"animationThreshold": 2000,
"animationDuration": 1000,
......@@ -357,7 +357,7 @@
"subtext": "\u6b21\u6570\uff1a\u6210\u7ee9"
}
};
chart_117e298ac73840919cb27e27a8370db7.setOption(option_117e298ac73840919cb27e27a8370db7);
chart_d2318041390e43d6a43040d895727152.setOption(option_d2318041390e43d6a43040d895727152);
</script>
</body>
</html>
from pyecharts.charts import Line
from pyecharts.charts import Pie
test = ["第1次","第2次","第3次","第4次","第5次","第6次","第7次","第8次","第9次","第10次"]
student1 = [112, 110, 118, 124, 129, 132, 136, 139, 144, 143] # 聪聪
student2 = [128, 131, 132, 129, 130, 127, 129, 131, 132, 128] # 小杰
student3 = [143, 145, 140, 133, 134, 126, 121, 120, 114, 105] # 皮皮
line=Line()
line.add_xaxis(test)
line.add_yaxis("聪聪成绩",student1)
line.add_yaxis("小杰成绩",student2)
line.add_yaxis("皮皮成绩",student3)
line.set_global_opts(title_opts=
pie=Pie()
pie.add_xaxis(test)
pie.add_yaxis("聪聪成绩",student1)
pie.add_yaxis("小杰成绩",student2)
pie.add_yaxis("皮皮成绩",student3)
pie.set_global_opts(title_opts=
{"text":"考试成绩","subtext":"次数:成绩"})
line.render("111.html")
pie.render("111.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