Static data was successfully connected to the Vega-V5 tree graph, however when I attempted to attach Kibana index data, it failed. Is it feasible to link the index data from Kibana to the Vega Tree graph?
Eg: my_index
[{"id": 1,
"name": "teacher",
"timestamp":"2023-01-13T05:23:35Z"
},
{
"id": 2,
"name": "student1",
"parent": 1,
"timestamp":"2023-01-13T05:23:35Z"
},
{
"id": 3,
"name": "student2",
"parent": 1,
"timestamp":"2023-01-13T05:23:35Z"
},
{
"id": 5,
"name": "student3",
"parent": 2,
"size": 3,
"timestamp":"2023-01-13T05:23:35Z"
}],
Kibana is getting the data as seen below when I attempt to bind it.
How I connected the Vega Tree graph with Kibana my index:
"data": [
{
"name": "tree",
"url": {
"%context%": true,
"%timefield%":"timestamp",
"index": "my_index",
"body" : {"from": 0,
"size": 10},
"format": {
"property": "hits.hits"
}
},
"transform": [
{
"type": "stratify",
"key": "id",
"parentKey": "parent"
},
{
"type": "tree",
"method": {"signal": "layout"},
"size": [{"signal": "height"}, {"signal": "width - 100"}],
"separation": {"signal": "separation"},
"as": ["y", "x", "depth", "children"]
}
]
},
All data combined into a single hit: