node2:/root/fenxi#cat k9.py
from pyecharts.faker import Faker
from pyecharts import options as opts
from pyecharts.charts import Funnel, Page
from pyecharts import options as opts
from pyecharts.charts import Gauge, Page
from pyecharts.faker import Faker
from pyecharts import options as opts
from pyecharts.charts import Pie
from pyecharts.faker import Faker
from pyecharts import options as opts
from pyecharts.charts import Bar
from pyecharts.globals import ThemeType
def bar_base() -> Bar:
c = (
Bar(init_opts=opts.InitOpts(theme=ThemeType.ROMANTIC,width="900px",height="300px"))
.add_xaxis(["身份核查系统", "外部数据平台", "新柜面", "新核心系统", "信贷系统", "网银系统","国结系统","回单系统"])
.add_yaxis("",[10,62,90,105,147,300,520,900])
.set_series_opts(label_opts=opts.LabelOpts(position="right"))
.set_global_opts(title_opts=opts.TitleOpts(title="交易超时或异常按业务系统占比", subtitle="我是副标题"))
#.set_global_opts(legend_opts=opts.LegendOpts(item_height=5, item_width=5))
#.set_global_opts(visualmap_opts=opts.VisualMapOpts(item_height=5))
.reversal_axis()
)
return c
bar_base().render("k9.html")
![](https://img-blog.csdnimg.cn/2019120210393980.PNG?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3poYW95YW5namlhbjcyNA==,size_16,color_FFFFFF,t_70)