安装命令:pip install pyechartspyecharts官网:https://pyecharts.org/5分钟上手from pyecharts.charts import Bar
bar = Bar()
bar.add_xaxis(["衬衫", "羊毛衫", "雪纺衫", "裤子", "高跟鞋", "袜子"])
bar.add_yaxis("商家A", [5, 20, 36, 10, 75, 90])
# render:默认在当前目录生成render.html文件,也可传入路径参数,如 bar.render("mycharts.html")
bar.render()
# pyecharts所有方法均支持链式调用
bar = (
Bar()
.add_xaxis(["衬衫", "羊毛衫", "雪纺衫", "裤子",
三毛