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.

Installation

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(Legend(['GDP']))
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": [
                2,
                3,
                4,
                5
            ],
            "name": "China"
        }
    ],
    "legend": {
        "y": "top",
        "x": "center",
        "data": [
            "GDP"
        ],
        "orient": "horizontal"
    },
    "xAxis": [
        {
            "position": "bottom",
            "data": [
                "Nov",
                "Dec",
                "Jan",
                "Feb"
            ],
            "type": "category"
        }
    ],
    "yAxis": {}
}

on Mac OSX, you also can execute

chart.plot()

and invoke a browser to display the chart.

Contribution

This package authored by Hsiaoming Yang <me@lepture.com> 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 <yufeiminds@gmail.com> now, you can also send a email to me.

Project details


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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 2

File details

Details for the file echarts-python-0.1.3.tar.gz.

File metadata

File hashes

Hashes for echarts-python-0.1.3.tar.gz
Algorithm Hash digest
SHA256 089fd8307c42ea47722cac25185465a962ca21231bb0e1a6737c19e2ba73578b
MD5 bb5a1ddd717f95d43da00cf1f9bf2f17
BLAKE2b-256 add7258cbe09217d62c225e4f797112493f87382a40d7c4679768ae45ed9d78e

See more details on using hashes here.

File details

Details for the file echarts_python-0.1.3-py2-none-any.whl.

File metadata

File hashes

Hashes for echarts_python-0.1.3-py2-none-any.whl
Algorithm Hash digest
SHA256 1f7c79117a287f0bf5ad8468680b429d48093afce1d9e930e3ffd75a7a021eab
MD5 0735f3ec808189de27b5eee19f98427e
BLAKE2b-256 fc540c2f0fbc6f7b98f9410049a47817430fb000343b639b1c3afd2fc4f5cab8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page