# Canvas - Change color in Data table

**URL:** https://discuss.elastic.co/t/canvas-change-color-in-data-table/213565
**Category:** Kibana
**Created:** [January 2, 2020, 11:24am UTC](https://discuss.elastic.co/t/canvas-change-color-in-data-table/213565 "2020-01-02T11:24:25Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![AstroSlazak](https://avatars.discourse-cdn.com/v4/letter/a/bbce88/32.png) [@AstroSlazak](https://discuss.elastic.co/u/AstroSlazak)
#### Post date: [January 2, 2020, 11:24am UTC](https://discuss.elastic.co/t/canvas-change-color-in-data-table/213565/1 "2020-01-02T11:24:25Z")

</div>

Hi,  
I have an problem that i don't know how to change color of the row where Total journeys are less than for example 8000.

This is my code:

```
filters
| essql query="SELECT total_journeys as \"Total journeys\" , datevalue as \"Date\", host.name as 
\"Server\" FROM \"monitoring*\""
| mapColumn "Date" fn={getCell column=Date | formatdate "YYYY-MM-DD"}

| table 
  font={font family="Chalkboard, 'Comic Sans', sans-serif" size=24 align="center" weight="bold" 
 underline=false italic=false}
 showHeader=true paginate=true perPage=15

| render containerStyle={containerStyle}

```

How use here an if statement ?

---

<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: [January 2, 2020, 4:33pm UTC](https://discuss.elastic.co/t/canvas-change-color-in-data-table/213565/2 "2020-01-02T16:33:27Z")

</div>

@AstroSlazak It's not currently possible to style the table row dynamically based on the data in that. You may file a [feature request](https://github.com/elastic/kibana/issues/new?template=Feature_request.md) in the Kibana repo.

---

<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 30, 2020, 4:33pm UTC](https://discuss.elastic.co/t/canvas-change-color-in-data-table/213565/3 "2020-01-30T16:33:33Z")

</div>

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