Skip to main content

pyqt-echarts 通过QWebEngine和pyecharts进行处理

Project description

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.1.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.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: qt_echarts-0.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 d473b4f339095071bd7de634bff15d81819fa5502371424a260425ba2517b753
MD5 1945ad712c09e3c62875fe686bb8671f
BLAKE2b-256 17dfad6c640c4ad7f390d02abcc593ceb13aae495974eb2f2e24719f45c64bc5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qt_echarts-0.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 82c3515bc1d84d9312de05e1be385d4ea9d29db3c875175db70ad9d8ffb6a8d8
MD5 3efb56b86362691679498bd75a0f5c9e
BLAKE2b-256 31a513d0b9d260740c97d62f775a56e5917420792728fba7c6f94b09a657dbc5

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