Skip to main content

Echarts binding for Python

Project description

An unofficial Echarts options generator with Python.

Latest Version Travis CI Status Codecov Status Doc Status

This repo still on developing (ALPHA), DON’T USE IT IN PRODUCTION.


Installing echarts-python with pip

$ pip install echarts-python

Current version for Echarts 3.1.6

Basic Usage

from echarts import Echart, Legend, Bar, Axis

chart = Echart('GDP', 'This is a fake chart')
chart.use(Bar('China', [2, 3, 4, 5]))
chart.use(Axis('category', 'bottom', data=['Nov', 'Dec', 'Jan', 'Feb']))

The chart.json property will be

    "title": {
        "text": "GDP",
        "subtext": "This is a fake chart"
    "series": [
            "type": "bar",
            "data": [
            "name": "China"
    "legend": {
        "y": "top",
        "x": "center",
        "data": [
        "orient": "horizontal"
    "xAxis": [
            "position": "bottom",
            "data": [
            "type": "category"
    "yAxis": {}

on Mac OSX, you also can execute


and invoke a browser to display the chart.


This package authored by Hsiaoming Yang <> in 2014.

If you have any question or want to improve this repository, welcome to create an issue or pull requests .

This repo is maintained by Yufei Li <> now, you can also send a email to me.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

echarts-python-0.1.3.tar.gz (6.5 kB view hashes)

Uploaded source

Built Distribution

echarts_python-0.1.3-py2-none-any.whl (8.6 kB view hashes)

Uploaded 2 6

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page