You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
422 B

# 分类名称
# LeiXing = []
# 城区
# CityArea = []
# 镇区
# ZhenArea = []
from pyecharts import options as opts
from pyecharts.charts import Bar
c = (
Bar()
.add_xaxis(LeiXing)
.add_yaxis("城区", CityArea)
.add_yaxis("乡镇", ZhenArea)
.set_global_opts(title_opts=opts.TitleOpts(title="项目单位情况", subtitle=""))
.dump_options()
)
print(c)