Python study notes --pyecharts (class library Echarts chart)

First, the development documentation

1. Baidu search "pyecharts"

http://pyecharts.herokuapp.com/

2. Go to Github

https://github.com/pyecharts/pyecharts

3.Github page - Installation 

#pip 安装

# 安装 v1 以上版本
$ pip install pyecharts -U

# 如果需要安装 0.5.11 版本的开发者,可以使用
# pip install pyecharts==0.5.11



#源码安装

# 安装 v1 以上版本
$ git clone https://github.com/pyecharts/pyecharts.git
# 如果需要安装 0.5.11 版本,请使用 git clone https://github.com/pyecharts/pyecharts.git -b v05x
$ cd pyecharts
$ pip install -r requirements.txt
$ python setup.py install

4, Github page - open development documents

https://pyecharts.org/

Second, writing skills

1. Check the source code, if there is a class that inherits the parent class continue to see the source code, until you find the __init __ () method.

2. The method of construction was found inside the parameters have default values. So why do not write parameters when creating the object.

Python function parameters colon arrow: https://blog.csdn.net/tscaxx/article/details/104098911

3. The parameter init_opts = opts.InitOpts () constructor attached to the inside

There are parameters constructor, we still need to further determine, whether there is need to set the parameters again.

 

 

 

 

Published 80 original articles · won praise 4 · views 10000 +

Guess you like

Origin blog.csdn.net/tscaxx/article/details/104095933