# True/False Visualization

**URL:** <https://discuss.elastic.co/t/true-false-visualization/259665>\
**Category:** Kibana\
**Created:** [December 26, 2020, 5:35pm UTC](https://discuss.elastic.co/t/true-false-visualization/259665 "2020-12-26T17:35:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rdesanno](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rdesanno/32/13607_2.png) [@rdesanno](https://discuss.elastic.co/u/rdesanno)\
**Post date:** [December 26, 2020, 5:35pm UTC](https://discuss.elastic.co/t/true-false-visualization/259665/1 "2020-12-26T17:35:48Z")

</div>

Hi all!

I'm perplexed on how to do something that should be easy and hoping that someone can point me in the right direction.

I'm building a dashboard and want to have a box on it that pulls the last text value and displays it. The results will either be 'true' or 'false' and is stored in one of my indexes. I would also like to have said box change red when this value is 'true' and blue when 'false'.

I am able to do this if the field contains a value but can't seem to figure out a way to do this with text fields but seems like it should be easy.

I might be able to do this with Canvas but that would mean migrating my current dashboards over to that format.

Any ideas on how I can approach this? Markdown/Metric seems like the way to go but not sure on how to query an index for the last value using it.

Timelion might work as well but that function is unusable since my last upgrade (see attached).

 ![Screen Shot 2020-12-26 at 12.34.41 PM](https://us1.discourse-cdn.com/elastic/original/3X/b/6/b698b157ed3896fc247a72ff182365c5cb174ba1.png)

---

<div class="post-metadata">

**Author:** ![ylasri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ylasri/32/86120_2.png) [@ylasri](https://discuss.elastic.co/u/ylasri)\
**Post date:** [December 26, 2020, 5:57pm UTC](https://discuss.elastic.co/t/true-false-visualization/259665/2 "2020-12-26T17:57:57Z")

</div>

Editing the field formatter under index pattern to color may help

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/d/0de435bc30c0cf559a7de90945c3e202a58d645d.png)

Then a Metric Viz with Top\_hit metrics will show the lastest value

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

---

<div class="post-metadata">

**Author:** ![rdesanno](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rdesanno/32/13607_2.png) [@rdesanno](https://discuss.elastic.co/u/rdesanno)\
**Post date:** [December 27, 2020, 3:40pm UTC](https://discuss.elastic.co/t/true-false-visualization/259665/3 "2020-12-27T15:40:39Z")

</div>

Wow, that totally works! Thank you!

---

<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:** [January 24, 2021, 3:40pm UTC](https://discuss.elastic.co/t/true-false-visualization/259665/4 "2021-01-24T15:40:39Z")

</div>

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