# How to separate bars from each other in Timelion Kibana?

**URL:** https://discuss.elastic.co/t/how-to-separate-bars-from-each-other-in-timelion-kibana/192974
**Category:** Kibana
**Tags:** timelion
**Created:** [July 30, 2019, 7:01pm UTC](https://discuss.elastic.co/t/how-to-separate-bars-from-each-other-in-timelion-kibana/192974 "2019-07-30T19:01:52Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![EZprogramming](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ezprogramming/32/57291_2.png) [@EZprogramming](https://discuss.elastic.co/u/EZprogramming)
#### Post date: [July 30, 2019, 7:01pm UTC](https://discuss.elastic.co/t/how-to-separate-bars-from-each-other-in-timelion-kibana/192974/1 "2019-07-30T19:01:52Z")

</div>

I would like to see the red and blue bars next to each other and not stacked on top of each other.

Note: doing .bars(stack=false) didn't work for me.

**Timelion code:**

```
.es(index=stage-athena-aux*, metric=avg:duration_time_per_row_per_month, timefield=capture_local_date, split=machine_id.keyword:2).title('Minutes of operation').label(regex='.* machine_id.keyword:(.*) > .*', label='$1').bars(width=12, stack=true).color(darkred:darkblue).legend(position=ne,columns=1)

```

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

---

<div class="post-metadata">

### Author: ![jen-huang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jen-huang/32/74327_2.png) [@jen-huang](https://discuss.elastic.co/u/jen-huang)
#### Post date: [July 30, 2019, 8:11pm UTC](https://discuss.elastic.co/t/how-to-separate-bars-from-each-other-in-timelion-kibana/192974/2 "2019-07-30T20:11:21Z")

</div>

Simply change the boolean within your existing .bar expression:  
`.bars(width=12, stack=true)` to `.bars(width=12, stack=false)`

---

<div class="post-metadata">

### Author: ![EZprogramming](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ezprogramming/32/57291_2.png) [@EZprogramming](https://discuss.elastic.co/u/EZprogramming)
#### Post date: [July 30, 2019, 8:40pm UTC](https://discuss.elastic.co/t/how-to-separate-bars-from-each-other-in-timelion-kibana/192974/3 "2019-07-30T20:40:15Z")

</div>

In my post I already mentioned that .bars(width=12, stack=false) doesn't work because the blue line will cover the red line.

After adding the change that you recommended, this is what the graph looks like.

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

but to explain what exactly is going on, have a look at the timestamp 2019-07-06. You will see just a blue line, but in reality the blue line is covering the red line.

Here is another picture when the blue line is hidden.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/5/8539f45c5afdc8f9b0944162e65352da4cb2d32d.png)

Now look at 2019-07-06 again. You will see that there was a red line, but that didn't show up in the previous screenshot. Therefore, I don't really know if this is a bug or not. Please let me know, thanks.

---

<div class="post-metadata">

### Author: ![jen-huang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jen-huang/32/74327_2.png) [@jen-huang](https://discuss.elastic.co/u/jen-huang)
#### Post date: [July 30, 2019, 8:46pm UTC](https://discuss.elastic.co/t/how-to-separate-bars-from-each-other-in-timelion-kibana/192974/4 "2019-07-30T20:46:00Z")

</div>

Can you share a screenshot of that result?

---

<div class="post-metadata">

### Author: ![EZprogramming](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ezprogramming/32/57291_2.png) [@EZprogramming](https://discuss.elastic.co/u/EZprogramming)
#### Post date: [July 30, 2019, 8:47pm UTC](https://discuss.elastic.co/t/how-to-separate-bars-from-each-other-in-timelion-kibana/192974/5 "2019-07-30T20:47:31Z")

</div>

Just updated my previous reply.

---

<div class="post-metadata">

### Author: ![EZprogramming](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ezprogramming/32/57291_2.png) [@EZprogramming](https://discuss.elastic.co/u/EZprogramming)
#### Post date: [July 31, 2019, 5:52pm UTC](https://discuss.elastic.co/t/how-to-separate-bars-from-each-other-in-timelion-kibana/192974/6 "2019-07-31T17:52:58Z")

</div>

I think this might be a bug, could you please confirm the issue? thanks

---

<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: [August 28, 2019, 5:53pm UTC](https://discuss.elastic.co/t/how-to-separate-bars-from-each-other-in-timelion-kibana/192974/7 "2019-08-28T17:53:03Z")

</div>

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