# Canvas too plain Data Table

**URL:** https://discuss.elastic.co/t/canvas-too-plain-data-table/207959
**Category:** Kibana
**Tags:** canvas
**Created:** [November 14, 2019, 8:59pm UTC](https://discuss.elastic.co/t/canvas-too-plain-data-table/207959 "2019-11-14T20:59:01Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![bkleynbok](https://avatars.discourse-cdn.com/v4/letter/b/d2c977/32.png) [@bkleynbok](https://discuss.elastic.co/u/bkleynbok)
#### Post date: [November 14, 2019, 8:59pm UTC](https://discuss.elastic.co/t/canvas-too-plain-data-table/207959/1 "2019-11-14T20:59:01Z")

</div>

Hello,

I am using ELK Stack 7.3.2 and working on a use case where a query that displays all rows which will have not had an update within 2 minutes as status=DOWN otherwise UP or WARN.

I was playing with Canvas and was able to get it partially working using DataTable element.

Is there a way to clean it up and show colors for UP green and DOWN read in any way possible?

> filters  
> | essql  
> query="SELECT processName, processType, hostname, status, NOW() as Now, "@timestamp" as Time, 0 as Diff FROM "boris-index" "  
> | mapColumn "Time" expression={getCell "Time" | formatdate "X"}  
> | mapColumn "Now" expression={getCell "Now" | formatdate "X"}  
> | alterColumn "Time" type="number"  
> | alterColumn "Now" type="number"  
> | mapColumn "Diff" expression={math "subtract(Now,Time)"}  
> | mapColumn "status" expression={if {getCell "Diff" | gt 120} then="DOWN" else={getCell "status"}}  
> | columns exclude="Now,Time,Diff"  
> | table  
> | render

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/1/612a8f81b0b7bd4dc54e4c832e77d4759e58c4be.png)

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/4/84da30fdd5ef4093b6cd0edc6f3fd66fd4abaf52.png)

Is there a way to make it more usable to visualize uptime?

---

<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: [November 14, 2019, 9:57pm UTC](https://discuss.elastic.co/t/canvas-too-plain-data-table/207959/2 "2019-11-14T21:57:24Z")

</div>

> [@bkleynbok](#):
>
> P green and DOWN read in any way possible?
> 
> > filters

@Catherine_Liu can you shed some light here ?  
Thanks  
Rashmi

---

<div class="post-metadata">

### Author: ![Catherine\_Liu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/catherine_liu/32/34294_2.png) [@Catherine\_Liu](https://discuss.elastic.co/u/Catherine_Liu)
#### Post date: [November 14, 2019, 10:17pm UTC](https://discuss.elastic.co/t/canvas-too-plain-data-table/207959/3 "2019-11-14T22:17:05Z")

</div>

It's currently not possible to style the contents of a table cell based on the value of the text. You can file a [feature request](https://github.com/elastic/kibana/issues/new?template=Feature_request.md) in the Kibana repo.

You may be able to use a markdown element to visualize this data instead where you have a lot more control over the styling.

---

<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: [December 12, 2019, 10:17pm UTC](https://discuss.elastic.co/t/canvas-too-plain-data-table/207959/4 "2019-12-12T22:17:05Z")

</div>

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