Commit fa50882c by BellCodeEditor

save project

parent b8e835e8
Showing with 18 additions and 5 deletions
from pyecharts.charts import Line
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] # 皮皮
bar=Bar()
line.abb_xaxis(test)
line.abb_yaxis("聪聪",student1)
line.abb_yaxis("小杰",student2)
line.abb_yaxis("皮皮",student3)
Line.render("78.html")
\ No newline at end of file
...@@ -7,11 +7,11 @@ ...@@ -7,11 +7,11 @@
</head> </head>
<body> <body>
<div id="ab2c82fca49541edb18a4dd0080436a3" class="chart-container" style="width:900px; height:500px;"></div> <div id="492f7fd88851472684f70be1024a307d" class="chart-container" style="width:900px; height:500px;"></div>
<script> <script>
var chart_ab2c82fca49541edb18a4dd0080436a3 = echarts.init( var chart_492f7fd88851472684f70be1024a307d = echarts.init(
document.getElementById('ab2c82fca49541edb18a4dd0080436a3'), 'white', {renderer: 'canvas'}); document.getElementById('492f7fd88851472684f70be1024a307d'), 'white', {renderer: 'canvas'});
var option_ab2c82fca49541edb18a4dd0080436a3 = { var option_492f7fd88851472684f70be1024a307d = {
"animation": true, "animation": true,
"animationThreshold": 2000, "animationThreshold": 2000,
"animationDuration": 1000, "animationDuration": 1000,
...@@ -184,7 +184,7 @@ ...@@ -184,7 +184,7 @@
} }
] ]
}; };
chart_ab2c82fca49541edb18a4dd0080436a3.setOption(option_ab2c82fca49541edb18a4dd0080436a3); chart_492f7fd88851472684f70be1024a307d.setOption(option_492f7fd88851472684f70be1024a307d);
</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