# Help on a custom visualization

**URL:** <https://discuss.elastic.co/t/help-on-a-custom-visualization/147602>\
**Category:** Kibana\
**Created:** [September 6, 2018, 3:28pm UTC](https://discuss.elastic.co/t/help-on-a-custom-visualization/147602 "2018-09-06T15:28:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ea1987](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ea1987/32/51356_2.png) [@ea1987](https://discuss.elastic.co/u/ea1987)\
**Post date:** [September 6, 2018, 3:28pm UTC](https://discuss.elastic.co/t/help-on-a-custom-visualization/147602/1 "2018-09-06T15:28:15Z")

</div>

Hi guys,  
here is my use case:

- index 1: will store business documents (there is a specific ID for each one)
- index 2: will store process state of business documents release (eg. printed, assigned, submitted)

What I would like to do is a visualization with square showing business process status. Green and red background color will be used to warn about the status of a specific business document (like in the example shown on the attached picture).

![Example%20visualization](https://us1.discourse-cdn.com/elastic/original/3X/b/b/bb260306bb30044f701a7d8ab0c711eff8a11d0a.png)

What's the best way to implement this kind of visualization? Of course is not a standard one..  
Thanks!

Andrea

---

<div class="post-metadata">

**Author:** ![cjcenizal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cjcenizal/32/11216_2.png) [@cjcenizal](https://discuss.elastic.co/u/cjcenizal)\
**Post date:** [September 7, 2018, 7:03pm UTC](https://discuss.elastic.co/t/help-on-a-custom-visualization/147602/2 "2018-09-07T19:03:46Z")

</div>

Hi Andrea,

Unfortunately it's not possible to build a visualization this complex and domain-specific in Kibana. The next closest thing you could do would be to create a Data Table visualization and use a couple Top Hit metrics aggregations to show you a list of your most recent documents and their associated IDs and statuses (this would require storing your data as logs in a single index). Here's a screenshot of how this visualization would look and how it would be defined. In your case, you'd have something like "status" in place of the "response" column.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/9/89b88dc4012a8d2f961c0487a8e40bdf6c599327.png)

Also, were you anticipating using a SQL-style JOIN to query your data and associate status with document? If so, note that this would be prohibitively-expensive in ES. For more info on this type of problem and alternatives, here's a great thread: [How to fetch data from multiple index using join like sql](https://discuss.elastic.co/t/how-to-fetch-data-from-multiple-index-using-join-like-sql/106131).

Hope this helps,  
CJ

---

<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:** [October 5, 2018, 7:04pm UTC](https://discuss.elastic.co/t/help-on-a-custom-visualization/147602/3 "2018-10-05T19:04:55Z")

</div>

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