Skip to main content

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


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.3.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qt_echarts-0.0.3-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file qt_echarts-0.0.3.tar.gz.

File metadata

  • Download URL: qt_echarts-0.0.3.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

Hashes for qt_echarts-0.0.3.tar.gz
Algorithm Hash digest
SHA256 a872382c84efc81ef93e2a49d820905fdd5084b610b2ba3edf127f9e54d84908
MD5 f1c86e3ac722d23eebad4453064383bb
BLAKE2b-256 c7b6cd290eeef5ba4fba257a39100c1fc20a29375eeb79fa06ae4ea7f3c011ae

See more details on using hashes here.

File details

Details for the file qt_echarts-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: qt_echarts-0.0.3-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

Hashes for qt_echarts-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4fb67767a7ac0e76bd760a728a868bcf9896fd7422c812e50c06f23c52a143f3
MD5 8f88ac2d7c7afb1527456983540ea770
BLAKE2b-256 46d462ad46805f87b4da990a587f20c23404f46ab9c0f73246fadc248a89311b

See more details on using hashes here.

Supported by

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