Echarts binding for Python
Project description
An unofficial Echarts options generator with Python.
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
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
{
"series": [
{
"type": "bar",
"zlevel": 0,
"data": [2, 3, 4, 5],
"name": "China"
}
],
"legend": {
"y": "top",
"x": "center",
"data": [
"China"
],
"orient": "horizontal"
},
"title": {
"text": "GDP",
"subtext": "This is a fake chart"
},
"xAxis": [],
"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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file echarts-python-0.1.tar.gz
.
File metadata
- Download URL: echarts-python-0.1.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b97ae15624391fc45efed6efff7fb633782ce6bbdc2e531082c20ff2cfc17b8f |
|
MD5 | 4efa21ddff52c57ebdf8ac3e812a78ce |
|
BLAKE2b-256 | 050293ca1a3c0d2961438aafcd0056db4d8116b7beebd66d626228b6e1a2f5ce |
File details
Details for the file echarts_python-0.1-py2-none-any.whl
.
File metadata
- Download URL: echarts_python-0.1-py2-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9cd17ca2a35b23e2805fbe749ecc94d87d192fbb73e23568c803df9dff1c53d5 |
|
MD5 | 84b741d36f577a5f2601c35205f86351 |
|
BLAKE2b-256 | a39926b9758416d9642d8a30cc09b0db9da58c36a601dea218610a8678875650 |