Commit d7e776fe by BellCodeEditor

save project

parent 4f0403a3
Showing with 7 additions and 7 deletions
from pyecharts.charts import Bar
from pyecharts.charts import Line
subjects = ["语文","数学","英语","地理","历史","政治","生物","化学","物理"]
scores = [88, 95, 96, 94, 62, 66, 64, 93, 89]
scores2 = [88, 95, 96, 94, 62, 66, 64, 93, 89]
bar = Bar()
bar.add_xaxis(sudjests)
bar.add_yaxis("期中",scores,bar_width=40)
bar.add_yaxis("期末",scores2,bar_width=40)
bar.render("123.html")
\ No newline at end of file
line = Line()
line.add_xaxis(sudjests)
line.add_yaxis("期中",scores,)
line.add_yaxis("期末",scores2,)
line.render("123.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