# Kibana TSVB Markdown

**URL:** <https://discuss.elastic.co/t/kibana-tsvb-markdown/243999>\
**Category:** Kibana\
**Created:** [August 6, 2020, 9:54am UTC](https://discuss.elastic.co/t/kibana-tsvb-markdown/243999 "2020-08-06T09:54:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![david.preston](https://avatars.discourse-cdn.com/v4/letter/d/51bf81/32.png) [@david.preston](https://discuss.elastic.co/u/david.preston)\
**Post date:** [August 6, 2020, 9:54am UTC](https://discuss.elastic.co/t/kibana-tsvb-markdown/243999/1 "2020-08-06T09:54:34Z")

</div>

Hi,

Can conditional logic be added to the TSVB Markdown visualisation?

I saw a post where the Markdown element in a canvas could be conditionally customised by editing the expression.

> [@Change the shape of markdown](https://discuss.elastic.co/t/change-the-shape-of-markdown/176705):
>
> Hi I want to use markdown to show custom data on kibana probably in canvas or my dashboard. But I see it only in rectangular shape. Is there a way can change the shape to like the above in image. Or any shape. Do we have the flexibility to enable different background colour for markdown based on some condition I can specify. If yes, Can you guide me where I can.

However I cannot see the same feature available for the TSVB Markdown visualisation.

I'm trying to create a dashboard where i want to conditionally swap icons etc..

Also, HandlebarsJs has only the built in handlebars expressions. It will only test if property exists (or is true etc..).  
`{{#if some-prop}}`

I cannot check if values are: equal to, less than, greater then, etc.. which I need to do.

**Is there any way to add conditional behaviour to the TSVB Markdown visualisation?**

Thanks  
David

---

<div class="post-metadata">

**Author:** ![thomasneirynck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomasneirynck/32/23313_2.png) [@thomasneirynck](https://discuss.elastic.co/u/thomasneirynck)\
**Post date:** [August 6, 2020, 3:23pm UTC](https://discuss.elastic.co/t/kibana-tsvb-markdown/243999/2 "2020-08-06T15:23:19Z")

</div>

hi @david.preston, I don't think you can do this in TSVB. I would log an enhancement here: [https://github.com/elastic/kibana/issues/new](https://github.com/elastic/kibana/issues/new)

---

<div class="post-metadata">

**Author:** ![david.preston](https://avatars.discourse-cdn.com/v4/letter/d/51bf81/32.png) [@david.preston](https://discuss.elastic.co/u/david.preston)\
**Post date:** [August 6, 2020, 3:33pm UTC](https://discuss.elastic.co/t/kibana-tsvb-markdown/243999/3 "2020-08-06T15:33:18Z")

</div>

OK, thanks for confirming

---

<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:** [September 3, 2020, 3:33pm UTC](https://discuss.elastic.co/t/kibana-tsvb-markdown/243999/4 "2020-09-03T15:33:25Z")

</div>

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