My data structure is as below
In this structure under the _source ,
labels.OrgId is the parent
for which the child is labels.StoreNum
followed by its child labels.RegisterNum. Further all the data in that index would come as child of labels.RegNum ie., labels.ServiceStatus, labels.ServiceName and few more
I would need a graph as below. But the data needs to e dynamic and followed by the leaf nodes in the below graph would need servicename, service state etc

