Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yufeiminds/echarts-python
Deprecated. Use PyEcharts instead. https://github.com/pyecharts/pyecharts
https://github.com/yufeiminds/echarts-python
Last synced: 6 days ago
JSON representation
Deprecated. Use PyEcharts instead. https://github.com/pyecharts/pyecharts
- Host: GitHub
- URL: https://github.com/yufeiminds/echarts-python
- Owner: yufeiminds
- Created: 2014-07-31T08:02:26.000Z (over 10 years ago)
- Default Branch: develop
- Last Pushed: 2021-10-01T00:39:53.000Z (about 3 years ago)
- Last Synced: 2024-10-06T04:41:06.405Z (about 1 month ago)
- Language: Python
- Homepage:
- Size: 43 KB
- Stars: 417
- Watchers: 38
- Forks: 167
- Open Issues: 21
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
- awesome-echarts - echarts-python - Generate Apache ECharts options with Python. (Languages / Python)
README
Echarts for Python
==================An unofficial Echarts options generator with Python.
.. image:: https://img.shields.io/pypi/v/echarts-python.svg
:target: https://pypi.python.org/pypi/echarts-python/
:alt: Latest Version
.. image:: https://travis-ci.org/yufeiminds/echarts-python.svg?branch=develop
:target: https://travis-ci.org/yufeiminds/echarts-python
:alt: Travis CI Status
.. image:: https://codecov.io/github/yufeiminds/echarts-python/coverage.svg?branch=develop
:target: https://codecov.io/github/yufeiminds/echarts-python?branch=master
:alt: Codecov Status
.. image:: https://readthedocs.org/projects/echarts-python/badge/?version=latest
:target: http://echarts-python.readthedocs.org/en/latest/?badge=latest
:alt: Doc Status- Free software: MIT license
- Documentation: http://echarts-python.readthedocs.io/en/stable/ (NOT Ready)
- Online demo: https://yufeiminds.github.io/echarts-python/ (NOT Ready)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
-----------.. code-block:: python
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
.. code-block:: javascript
{
"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 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.