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.1.tar.gz
(470.0 kB
view hashes)
Built Distribution
nicegui_g6-0.1.1-py3-none-any.whl
(476.8 kB
view hashes)
Close
Hashes for nicegui_g6-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91c076929bfefcb8d7bb2fd93bb7d3a91ee4a4c662aaeb3f7fa4b9dc50833b90 |
|
MD5 | c8632224f0fb1c7a67faa5ef6007ea2e |
|
BLAKE2b-256 | 4ee7852b00f9bd00bbbe87fbcaa155aab224e12b06b07d0dcb20bd963df2693a |