Pyecharts
from pyecharts import Bar columns = ["Jan", "Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"] data1 = [2.0,4.9,3.5,6.2,4.3,15,26,39,10,3.6,4.5,2.3] data2 = [2.6,5.9,9.0,26.4,70.7,150,120,100,83,36,20,13] bar = Bar("柱状图","一年的降水量与蒸发量") bar.add("降水量",columns,data1,mark_line=["average"],mark_point=["max","min"]) bar.add("蒸发量",columns,data2,mark_line=["average"],mark_point=["max","min"]) bar.render() bar
生成运行的结果在同目录下的html文件中 结果: