pyqt-echarts 通过QWebEngine和pyecharts进行处理
Project description
QT-Echarts
安装
pip install qt-echarts
例子
import sys
from pyecharts.charts import Tree
from PyQt5.QtWidgets import QApplication
from pyecharts import options as opts
from qtecharts.charts_engine import ChartEngine
if __name__ == '__main__':
data = [
{
"children": [
{"name": "B"},
{
"children": [{"children": [{"name": "I"}], "name": "E"}, {"name": "F"}],
"name": "C",
},
{
"children": [
{"children": [{"name": "J"}, {"name": "K"}], "name": "G"},
{"name": "H"},
],
"name": "D",
},
],
"name": "A",
}
]
tree = Tree()
tree.add("",data)
tree.set_global_opts(title_opts=opts.TitleOpts(title="Tree-基本示例"))
app = QApplication(sys.argv)
engine = ChartEngine(chart=tree)
engine.show()
sys.exit(app.exec_())
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
qt_echarts-0.0.2.tar.gz
(4.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qt_echarts-0.0.2.tar.gz.
File metadata
- Download URL: qt_echarts-0.0.2.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
facaf7914fd9d89ab65c0e1f34eaa95d34664db79b6086e8dec577ae3da618ee
|
|
| MD5 |
ce5739ca9167e92f1eb914649815dc51
|
|
| BLAKE2b-256 |
222194a9cd42f52c3b923cab354ad7286c9747a84b366ce185579bda452f63de
|
File details
Details for the file qt_echarts-0.0.2-py3-none-any.whl.
File metadata
- Download URL: qt_echarts-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
adc65d23311db50127f1f9104b2fe2251fcb61672545cea9d1dcb85441c32e24
|
|
| MD5 |
7fd05674c859ea7870b09d8a9dd922a3
|
|
| BLAKE2b-256 |
6a667855af7fe7652acf98c01652ccb6fe8a9c9edb6b4140bbfa042aaeba344a
|