mirror of
https://github.com/flancian/garden.git
synced 2026-08-07 06:56:19 +00:00
Auto: misc.
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
# force graph
|
||||
|
||||
- [[go]] https://github.com/vasturiano/force-graph
|
||||
- I think it makes sense. Seems reasonable fast at the high-thousand-nodes level; the agora is currently at 10k. And most of the visualizations I want to do are actually node-scoped plus links, so really just an issue for hugely outlier nodes degree wise (like [[person]] or [[go]]).
|
||||
- Unfortunately it doesn't seem to provide labels for edges?
|
||||
- False, it does: https://vasturiano.github.io/force-graph/example/text-links/
|
||||
- Data format, JSON:
|
||||
|
||||
```
|
||||
{
|
||||
"nodes": [
|
||||
{
|
||||
"id": "id1",
|
||||
"name": "name1",
|
||||
"val": 1
|
||||
},
|
||||
{
|
||||
"id": "id2",
|
||||
"name": "name2",
|
||||
"val": 10
|
||||
},
|
||||
(...)
|
||||
],
|
||||
"links": [
|
||||
{
|
||||
"source": "id1",
|
||||
"target": "id2"
|
||||
},
|
||||
(...)
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user