from pyecharts import Line
attr = ["衬衫", "羊毛衫", "雪纺衫", "裤子", "高跟鞋", "袜子"]
v1 = [5, 20, 36, 10, 10, 100]
v2 = [55, 60, 16, 20, 15, 80]
line = Line("折线图示例")
line.add("商家A", attr, v1, mark_point=["average"])
line.add("商家B", attr, v2, is_smooth=True,
mark_line=["max", "average"])
line.render('line01.html')
line
作者:潇洒坤
链接:https://www.jianshu.com/p/81e01d43b2ba
來源:简书
简书著作权归作者所有,任何形式的转载都请联系作者获得授权并注明出处。
pyechart
最新推荐文章于 2024-04-22 14:12:25 发布