# Sankey visualisation (Vega) - \_aggregations is undefined

**URL:** <https://discuss.elastic.co/t/sankey-visualisation-vega-aggregations-is-undefined/166972>\
**Category:** Kibana\
**Tags:** vega\
**Created:** [February 4, 2019, 2:23pm UTC](https://discuss.elastic.co/t/sankey-visualisation-vega-aggregations-is-undefined/166972 "2019-02-04T14:23:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![excitingreveler](https://avatars.discourse-cdn.com/v4/letter/e/b9bd4f/32.png) [@excitingreveler](https://discuss.elastic.co/u/excitingreveler)\
**Post date:** [February 4, 2019, 2:23pm UTC](https://discuss.elastic.co/t/sankey-visualisation-vega-aggregations-is-undefined/166972/1 "2019-02-04T14:23:28Z")

</div>

So I copied the vega code from [this blog post](https://www.elastic.co/blog/sankey-visualization-with-vega-in-kibana) and changed the source/destination fields to ones found in our indices. It's been useful to identify unusual traffic in our firewall logs.  
It's been working fine until 6.5/6.6 when I started getting the error \_.aggregations is undefined.  
It'd be great to get some help.  
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:** [March 1, 2019, 7:26pm UTC](https://discuss.elastic.co/t/sankey-visualisation-vega-aggregations-is-undefined/166972/2 "2019-03-01T19:26:11Z")

</div>

@nyuriks - can you help here please ?

Thanks  
Rashmi

---

<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:** [March 29, 2019, 7:26pm UTC](https://discuss.elastic.co/t/sankey-visualisation-vega-aggregations-is-undefined/166972/3 "2019-03-29T19:26:23Z")

</div>

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