Counting 2,129 Big Data & Machine Learning Frameworks, Toolsets, and Examples...
Suggestion? Feedback? Tweet @stkim1

Author
Last Commit
Dec. 12, 2017
Created
Jun. 22, 2017

pyecharts Build Status codecov PyPI version License: MIT

pyecharts is a library to generate charts using Echarts. It simply provides the interface between Echarts and Python.

Introduction

Echarts is an open source library from Baidu for data visualization in javascript. It has awesome demo pages so I started to look out for an interface library so that I could use it in Python. I ended up with echarts-python on github but it lacks of documentation and was not updated for a while. Just like many other Python projects, I started my own project, pyecharts, referencing echarts-python and another library pygal.

Installation

pyecharts works on Python2 and Python3. For more information please refer to changelog.md

Jupyter-Notebook

Make sure you hava installed jupyter-notebook enviroment if you want to show your charts on notebook.
How to install it?

$ pip install notebook

pyecharts

You can install it via pip

$ pip install pyecharts -U

or clone it and install it

$ git clone --recursive https://github.com/chenjiandongx/pyecharts.git
$ cd pyecharts
$ pip install -r requirements.txt
$ python setup.py install

Basic Usage

from pyecharts import Bar

attr = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
v1 = [2.0, 4.9, 7.0, 23.2, 25.6, 76.7, 135.6, 162.2, 32.6, 20.0, 6.4, 3.3]
v2 = [2.6, 5.9, 9.0, 26.4, 28.7, 70.7, 175.6, 182.2, 48.7, 18.8, 6.0, 2.3]
bar = Bar("Bar chart", "precipitation and evaporation one year")
bar.add("precipitation", attr, v1, mark_line=["average"], mark_point=["max", "min"])
bar.add("evaporation", attr, v2, mark_line=["average"], mark_point=["max", "min"])
bar.render()

It will create a file named render.html in the root directory, open file with your borwser.

usage-0

Working with pandas & numpy

pandas_numpy

Working with Flask & Django

Flask

flask-0

Django

django-0

Documentation

Test

$ cd test
$ nosetests --with-coverage --cover-package pyecharts --cover-package test

Author

pyecharts is developed and maintained by chenjiandongx ([email protected])

License

pyecharts is released under the MIT License. See LICENSE for more information.

Latest Releases
v0.3.0
 Dec. 11 2017
v0.2.7
 Oct. 26 2017
v0.2.6
 Oct. 14 2017
v0.2.4
 Sep. 8 2017
v0.2.3
 Aug. 31 2017