# Multi-level Sankey in Kibana

**URL:** <https://discuss.elastic.co/t/multi-level-sankey-in-kibana/190582>\
**Category:** Kibana\
**Created:** [July 15, 2019, 4:40pm UTC](https://discuss.elastic.co/t/multi-level-sankey-in-kibana/190582 "2019-07-15T16:40:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dhruv477](https://avatars.discourse-cdn.com/v4/letter/d/94ad74/32.png) [@dhruv477](https://discuss.elastic.co/u/dhruv477)\
**Post date:** [July 15, 2019, 4:40pm UTC](https://discuss.elastic.co/t/multi-level-sankey-in-kibana/190582/1 "2019-07-15T16:40:29Z")

</div>

I was able to successfully make a 2 level sankey graph based on the blog post but wasn't able to find anything to make the graph multi-level. Is there a way to extend the sankey to multiple layered graph? Any help would be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [July 16, 2019, 1:34pm UTC](https://discuss.elastic.co/t/multi-level-sankey-in-kibana/190582/2 "2019-07-16T13:34:44Z")

</div>

@nyuriks - can you please help here?

Thanks  
Rashmi

---

<div class="post-metadata">

**Author:** ![nyuriks](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nyuriks/32/26171_2.png) [@nyuriks](https://discuss.elastic.co/u/nyuriks)\
**Post date:** [July 16, 2019, 7:05pm UTC](https://discuss.elastic.co/t/multi-level-sankey-in-kibana/190582/3 "2019-07-16T19:05:16Z")

</div>

@dhruv477 while there has been a number of requests for this, the complexity of the task is such that it hasn't been built by anyone yet. I think we should really invest some time into building a new Vega transformation that wraps d3's Sankey logic. Once done, multilevel sankey graphs will become far easier. But as always with the open source - someone has to actually spend time creating it and submitting a pull request. Hopefully there will either be a volunteer soonish, or I will try to find some time to wrap my brain around it, or we could convince the Vega team to build it (I think there is a Vega issue for it somewhere)... So... I'm still hopeful 🙂

---

<div class="post-metadata">

**Author:** ![dhruv477](https://avatars.discourse-cdn.com/v4/letter/d/94ad74/32.png) [@dhruv477](https://discuss.elastic.co/u/dhruv477)\
**Post date:** [July 17, 2019, 1:59am UTC](https://discuss.elastic.co/t/multi-level-sankey-in-kibana/190582/4 "2019-07-17T01:59:12Z")

</div>

@nyuriks thanks for the reply.  
I went ahead and made a 3 layered Sankey graph. It works fine and it almost solved my business problem(almost!). I can help out you guys by volunteering and extending the graph to many levels once I'm able to figure out how to properly solve my problem.

With the current graph I have, it works perfectly fine, except the aggregation makes multiple connections between every 2 different nodes, which isn't ideal.

---

<div class="post-metadata">

**Author:** ![dhruv477](https://avatars.discourse-cdn.com/v4/letter/d/94ad74/32.png) [@dhruv477](https://discuss.elastic.co/u/dhruv477)\
**Post date:** [July 17, 2019, 11:22pm UTC](https://discuss.elastic.co/t/multi-level-sankey-in-kibana/190582/5 "2019-07-17T23:22:32Z")

</div>

**Update** : It works perfectly now!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 14, 2019, 11:22pm UTC](https://discuss.elastic.co/t/multi-level-sankey-in-kibana/190582/6 "2019-08-14T23:22:33Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
