Commit 0c9d09f4 by BellCodeEditor

save project

parent e3a2cbd9
Showing with 4 additions and 5 deletions
from pyecharts. charts import Bar
subjects = ["语文","数学","英语","地理"]
scores1 = [88, 95, 96, 94]
scores2 = [88, 95, 96, 94]
subjects = ["语文","数学","英语","地理","历史","政治","生物","化学","物理"]
scores1 = [88, 95, 96, 94,62,66,64,93,89]
bar=Bar()
bar.add_xaxis(subjects)
bar.add_yaxis("期末",scores1,bar_width=40)
bar.add_yaxis("期中",scores2,bar_width=40)
bar.add_yaxis("钱钱",scores)
bar.render("analysis.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