Skip to main content

A component of AntV G6 visualization engine implemented based on NiceGUI

Project description

nicegui-g6

A component of AntV G6 visualization engine implemented based on NiceGUI

🔨 Getting Started

To install nicegui-g6, run the following command in your terminal:

pip install nicegui-g6

To use nicegui-g6, you can simply import the g6 function and pass the graph data to it. Here's an example:

from nicegui_g6 import g6
from nicegui import ui

# define the graph data
# You can refer to the G6 documentation for more details.
data = {
    "nodes": [
        {
            "id": "node1",
            "x": 100,
            "y": 200,
        },
        {
            "id": "node2",
            "x": 300,
            "y": 200,
        },
    ],
    "edges": [
        {
            "source": "node1",
            "target": "node2",
        },
    ],
}

g6(data)

ui.run()

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

nicegui_g6-0.1.1.tar.gz (470.0 kB view hashes)

Uploaded Source

Built Distribution

nicegui_g6-0.1.1-py3-none-any.whl (476.8 kB view hashes)

Uploaded Python 3

Supported by

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