Open
Description
Is your feature request related to a problem? Please describe.
I want to visualize clusters by coloring the space between the nodes that belong to that cluster.
Describe the solution you'd like
I want to provide an array of node arrays that represent the different clusters, potentially but not necessarily overlapping. Then the space inbetween these nodes should be colored using distinct colors (basically color the faces between edges/links between the nodes, the convex hull).
My call would look like that:
const Graph = ForceGraph3D()(document.getElementById("3d-graph"));
Graph.resetProps();
Graph.cooldownTicks(200)
.nodeLabel('name')
.enableClusterVisualization(true)
.jsonUrl('some-data.json')
with the json in the form of:
{
"nodes": [
{
"id": "id1",
"name": "name1",
"val": 1
},
{
"id": "id2",
"name": "name2",
"val": 10
},
(...)
],
"links": [
{
"source": "id1",
"target": "id2"
},
(...)
],
"clusters": [
["id1", "id2"],
["id3", "id4"],
(...)
]
}
Describe alternatives you've considered
Just coloring the nodes is not enough (e.g. for overlapping clusters).
Metadata
Assignees
Labels
No labels
Activity