Commit a065f6eb by BellCodeEditor

save project

parent a627a14b
Showing with 10 additions and 4 deletions
from pyecharts.charts import Bar from pyecharts import charts
age = ["25以下","26~35岁","36~45岁","46岁以上"]
subjects = ["语文","数学","英语","地理","历史","政治","生物","化学","物理"] man = [23,47,35,20]
scores = [88, 95, 96, 94, 62, 66, 64, 93, 89] woman = [20,51,30,41]
bar = charts.Bar()
bar.add_xaxis(age)
bar.add_yaxis("男",man)
bar.add_yaxis("女"woman)
bar.render("age_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