1.2 KiB
1.2 KiB
None
<html lang="en">
<head>
</head>
</html>
In [1]:
from pyecharts.charts import Bar
from pyecharts import options as opts
from pyecharts.globals import ThemeType
In [ ]:
bar = (
Bar(init_opts=opts.InitOpts(theme=ThemeType.LIGHT))
.add_xaxis(['哲学','历史','教育','科技','文学','经济'])
.add_yaxis('商家 A',[25,20,36,40,75,90])
)