Commit 6596112a by BellCodeEditor

auto save

parent 92004bae
Showing with 3 additions and 3 deletions
...@@ -3,9 +3,9 @@ from pyecharts.charts import Bar ...@@ -3,9 +3,9 @@ from pyecharts.charts import Bar
subjects = ["语文","数学","英语","地理","历史","政治","生物","化学","物理"] subjects = ["语文","数学","英语","地理","历史","政治","生物","化学","物理"]
scores = [88, 95, 96, 94, 62, 66, 64, 93, 89] scores = [88, 95, 96, 94, 62, 66, 64, 93, 89]
bar = Bar() bar = Bar()#创建柱状统计图
bar.add_xaxis(subjects) bar.add_xaxis(subjects)
bar.add_yaxis('小贝的成绩',scores) bar.add_yaxis('小贝的成绩',scores)#传入x,y数据
bar.render('123.html') bar.render('123.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