# Can a single label be removed?

**URL:** https://discuss.elastic.co/t/can-a-single-label-be-removed/174186
**Category:** Kibana
**Created:** [March 27, 2019, 6:20pm UTC](https://discuss.elastic.co/t/can-a-single-label-be-removed/174186 "2019-03-27T18:20:55Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![joaociocca](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joaociocca/32/15827_2.png) [@joaociocca](https://discuss.elastic.co/u/joaociocca)
#### Post date: [March 27, 2019, 6:20pm UTC](https://discuss.elastic.co/t/can-a-single-label-be-removed/174186/1 "2019-03-27T18:20:55Z")

</div>

so, I made a % bar graph made of 2 series. To make the second series more prominent, I repeated it as a third serie using points, but I don't want it to show on the label since it's exactly the same value and label as the second series. Can this be done? I've tried label with null, false, off, '' and nothing seems to work.

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

---

<div class="post-metadata">

### Author: ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)
#### Post date: [March 27, 2019, 7:11pm UTC](https://discuss.elastic.co/t/can-a-single-label-be-removed/174186/2 "2019-03-27T19:11:57Z")

</div>

@joaociocca can you share a screenshot of the visualization configuration and the specific label that you're trying to hide?

---

<div class="post-metadata">

### Author: ![joaociocca](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joaociocca/32/15827_2.png) [@joaociocca](https://discuss.elastic.co/u/joaociocca)
#### Post date: [March 27, 2019, 7:31pm UTC](https://discuss.elastic.co/t/can-a-single-label-be-removed/174186/3 "2019-03-27T19:31:02Z")

</div>

TL Expression:

```
.divide(
	.es('PacketType:3',metric=count).label("% Rejeição"),
	.es(*)
).multiply(100).bars(width=3).color(#f39a00),

.divide(
	.subtract(
		.es(*),
		.es('PacketType:3',metric=count)
	), .es(*)
).multiply(100).bars(width=3).color(#0369b9).label("% Total").yaxis(1,max=100),

.es('PacketType:3',metric=count).if(gt,0,
		.divide(
		.es('PacketType:3',metric=count),
		.es(*)
	).multiply(100).label(false),
null).points(weight=1).color(#f39a00)

```

I'm trying to hide the last "source" (there's the `label(false)` attempt)

---

<div class="post-metadata">

### Author: ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)
#### Post date: [March 27, 2019, 8:39pm UTC](https://discuss.elastic.co/t/can-a-single-label-be-removed/174186/4 "2019-03-27T20:39:52Z")

</div>

Instead of using two "series", I'd suggest using `.bars(width=3).points(weight=1)` like the following:

```auto
.divide(
	.es('PacketType:3',metric=count).label("% Rejeição"),
	.es(*)
).multiply(100).bars(width=3).points(weight=1).color(#f39a00),

.divide(
	.subtract(
		.es(*),
		.es('PacketType:3',metric=count)
	), .es(*)
).multiply(100).bars(width=3).color(#0369b9).label("% Total").yaxis(1,max=100)

```

---

<div class="post-metadata">

### Author: ![joaociocca](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joaociocca/32/15827_2.png) [@joaociocca](https://discuss.elastic.co/u/joaociocca)
#### Post date: [March 27, 2019, 8:59pm UTC](https://discuss.elastic.co/t/can-a-single-label-be-removed/174186/5 "2019-03-27T20:59:46Z")

</div>

I had no idea I could use two visualizations on one serie! Thanks!

But now I have another problem. I do like how it was showing back there, with the '% Rejeição' point being shown over 'Total' blue bar. Now, since 'Total' series gets plotted after '% Rejeição' points, the 'Total' blue bar starts in the middle of those points, when they show up.

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

Can I do something about that? Keeping the orange bars at the bottom, but making the points get plotted over the blue bars?

---

<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: [April 24, 2019, 8:59pm UTC](https://discuss.elastic.co/t/can-a-single-label-be-removed/174186/6 "2019-04-24T20:59:51Z")

</div>

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