第一个文件pyecharts--渐变圆柱

from pyecharts.charts import Bar
from pyecharts import options as opts
x = range(1, 8)
y = [114, 55, 27, 101, 125, 27, 105]
bar = Bar()
bar.add_xaxis(list(x))
bar.add_yaxis("name", y)
bar.set_global_opts(title_opts=opts.TitleOpts(title="bar--渐变图"))
bar.render_notebook()

在这里插入图片描述
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/xiaoxiamimm/article/details/112509715