pyecharts版本差异
问题1、AttributeError: module 'pyecharts’ has no attribute 'Line’?
问题2、AttributeError: module 'pyecharts’ has no attribute 'Bar’?
1.9.0版本:
pyecharts.charts Bar pyecharts options opts
bar = Bar().set_global_opts(title_opts=opts.TitleOpts(title="myBar",subtitle="xxx data"))
bar.add_xaxis(attr)
bar.add_yaxis("门店A",v1)
0.1.9及以下 版本:
pyecharts
bar = pyecharts.Bar(title="myBar",subtitle="xxx data")
bar.add('test1',attr,v1,is_stack=True)
赞 (0)