目录
2、pyecharts所有方法均支持链式调用,等价于下面代码:
官方链接:https://pyecharts.org/#/zh-cn/intro
概览
如何查看使用的pyecharts版本?
import pyecharts
print(pyecharts.__version__)
一、5分钟上手案例
1、首先开始来推出你的第一个图表
from pyecharts.charts import Bar
from pyecharts import options as opts
# 设置图形主题,内置主题类型可查看 pyecharts.globals.ThemeType
from pyecharts.globals import ThemeType
filepath = r'C:\Users\Administrator\Desktop\myEcharts.html'
bar = Bar(init_opts=opts.InitOpts(theme=ThemeType.LIGHT))
bar.add_xaxis(["衬衫", "羊毛衫", "雪纺衫", "裤子", "高跟鞋", "袜子"