# Sankey diagram does not show last element

**URL:** <https://discuss.elastic.co/t/sankey-diagram-does-not-show-last-element/180344>\
**Category:** Kibana\
**Tags:** vega\
**Created:** [May 9, 2019, 11:28am UTC](https://discuss.elastic.co/t/sankey-diagram-does-not-show-last-element/180344 "2019-05-09T11:28:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhimanyu.arora](https://avatars.discourse-cdn.com/v4/letter/a/5daacb/32.png) [@abhimanyu.arora](https://discuss.elastic.co/u/abhimanyu.arora)\
**Post date:** [May 9, 2019, 11:28am UTC](https://discuss.elastic.co/t/sankey-diagram-does-not-show-last-element/180344/1 "2019-05-09T11:28:26Z")

</div>

Hi Team,

I wanted to build a sankey report and did it successfully using this [post](https://www.elastic.co/blog/sankey-visualization-with-vega-in-kibana).

But, there is an issue. If there is an entry which occurs only in destination, the report does not show its name and the tooltip. Please see the example below,

```
{
source: A,
destination: B,
count: 10
}

```

If there is no entry where source is B, the diagram displays like this:-  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/a/8a1675ecde347ca10fb61ead38f08467cc86b88d.png)

I cannot click the cancel (shown in white) and hence I cannot see its details.

Can you please suggest a solution?

Thanks.

---

<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:** [May 21, 2019, 6:37pm UTC](https://discuss.elastic.co/t/sankey-diagram-does-not-show-last-element/180344/2 "2019-05-21T18:37:03Z")

</div>

@nyuriks - can you please help here?

Thanks  
Rashmi

---

<div class="post-metadata">

**Author:** ![abhimanyu.arora](https://avatars.discourse-cdn.com/v4/letter/a/5daacb/32.png) [@abhimanyu.arora](https://discuss.elastic.co/u/abhimanyu.arora)\
**Post date:** [June 11, 2019, 6:34am UTC](https://discuss.elastic.co/t/sankey-diagram-does-not-show-last-element/180344/3 "2019-06-11T06:34:52Z")

</div>

Hi, Any lead in this issue?

---

<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:** [July 9, 2019, 6:34am UTC](https://discuss.elastic.co/t/sankey-diagram-does-not-show-last-element/180344/4 "2019-07-09T06:34:53Z")

</div>

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