Commit 0b5d37af by BellCodeEditor

auto save

parent 4cc3d781
Showing with 35 additions and 19 deletions
......@@ -7,11 +7,11 @@
</head>
<body>
<div id="7d65d790783a470f963374a8fa352acc" class="chart-container" style="width:900px; height:500px;"></div>
<div id="92886f10b34a4a5dba36093a85daeb3c" class="chart-container" style="width:900px; height:500px;"></div>
<script>
var chart_7d65d790783a470f963374a8fa352acc = echarts.init(
document.getElementById('7d65d790783a470f963374a8fa352acc'), 'white', {renderer: 'canvas'});
var option_7d65d790783a470f963374a8fa352acc = {
var chart_92886f10b34a4a5dba36093a85daeb3c = echarts.init(
document.getElementById('92886f10b34a4a5dba36093a85daeb3c'), 'white', {renderer: 'canvas'});
var option_92886f10b34a4a5dba36093a85daeb3c = {
"animation": true,
"animationThreshold": 2000,
"animationDuration": 1000,
......@@ -357,7 +357,7 @@
"subtext": "\u5206\u6570"
}
};
chart_7d65d790783a470f963374a8fa352acc.setOption(option_7d65d790783a470f963374a8fa352acc);
chart_92886f10b34a4a5dba36093a85daeb3c.setOption(option_92886f10b34a4a5dba36093a85daeb3c);
</script>
</body>
</html>
from pyecharts.charts import Line
import turtle as t
import turtle as r
t.setup(1000,800)
t.screensize(1000,800,"yellow")
def draw_circle(radius,color,y_position):
t.penup()
t.pensize(18)
t.fillcolor(color)
t.goto(0,y_position)
t.pendown()
t.begin_fill()
t.circle(radius)
t.end_fill()
def draw_bullent():
t.penup()
t.goto(r.randint(-200,200),r.randint(-200,200))
t.pendown()
t.dot(999)
draw_circle(200,'yellow', -200)
draw_circle(150,'red', -150)
draw_circle(100,'blue', -100)
draw_circle(50,'skyblue', -50)
for _ in range(5):
draw_bullent()
t.hideturtle()
t.done()
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)
\ No newline at end of file
line.set_global_opts(title_opts={"text":"数学成绩","subtext":"分数"})
line.render("line.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