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
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
nicegui_g6-0.1.0.tar.gz
(1.7 kB
view hashes)
Built Distribution
Close
Hashes for nicegui_g6-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c5f7017ba9e7e583535b1761c7c7479effd26cedb38078c2ba1354809ab6c3b |
|
MD5 | 9dd37768fcb090049c07436a94b003c9 |
|
BLAKE2b-256 | 1d56fc83dce19e60fe39bb87004063eeab144a8c0fdf9c2af2e5909fbca1bf8a |