# Pie Chart not showing Bytes

**URL:** <https://discuss.elastic.co/t/pie-chart-not-showing-bytes/380114>\
**Category:** Kibana\
**Tags:** visualisation\
**Created:** [July 14, 2025, 6:32pm UTC](https://discuss.elastic.co/t/pie-chart-not-showing-bytes/380114 "2025-07-14T18:32:09Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![erikg](https://avatars.discourse-cdn.com/v4/letter/e/91b2a8/32.png) [@erikg](https://discuss.elastic.co/u/erikg)\
**Post date:** [July 14, 2025, 6:32pm UTC](https://discuss.elastic.co/t/pie-chart-not-showing-bytes/380114/1 "2025-07-14T18:32:09Z")

</div>

Hello,  
Is this a bug?

I have a field with the values as bytes:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/d/dd864c66c27058f329177b832a5af3466d915736.png)  
But I want to display the data on the pie chart as bytes but I only get two options:  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/1/d/1d3ff9b11038ff0b7ea486c83a56a27b6a84396d.png)

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

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

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [July 14, 2025, 7:28pm UTC](https://discuss.elastic.co/t/pie-chart-not-showing-bytes/380114/2 "2025-07-14T19:28:12Z")

</div>

what version?

Also can you show exactly how you are getting used and free ... i.e. the rest of the configuration?

- What is the metric and what is the slice by? (I suspect you need to put bytes on the slice by as well)
- What is the data coming from?
- What fields are you using?

Lens Latest...

 ![Screenshot 2025-07-14 at 12.34.22 PM](https://us1.discourse-cdn.com/elastic/original/3X/b/4/b464e6cd8ba948504a5c7d47c50415cabb4ce2f6.png)

---

<div class="post-metadata">

**Author:** ![erikg](https://avatars.discourse-cdn.com/v4/letter/e/91b2a8/32.png) [@erikg](https://discuss.elastic.co/u/erikg)\
**Post date:** [July 14, 2025, 9:17pm UTC](https://discuss.elastic.co/t/pie-chart-not-showing-bytes/380114/3 "2025-07-14T21:17:15Z")

</div>

Hello @stephenb ,

I am on v9.0.3  
The metric is numerical field from prometheus collector integration. The field contains the number but typically can be converted to bytes in Lens.

I changed the visualization to a table:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/9/295cfcaa26ff4f9db62cc17816fd8fe0013f54e4.png)

If you noticed the number is now formatted as bytes in table visualization (as expected).  
The issue is I wanted to show in the pie chart the breakdown by bytes (formatted as bytes)

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [July 15, 2025, 12:10am UTC](https://discuss.elastic.co/t/pie-chart-not-showing-bytes/380114/4 "2025-07-15T00:10:44Z")

</div>

Hi @erikg I think I have helped you a few times...

I tend to ask very specific questions without explaining why 🙂 I am trying to get the the issue as fast as possible.

So I asked if you could show me the **entire** config for the Pie Viz.

What you gave me was ... See it works in the table... and a the tiniest _smidget_ of detail and a redacted field name 🙂 .... pardon the chuckles but not much help 🙂

> [@erikg](#):
>
> The issue is I wanted to show in the pie chart the breakdown by bytes (formatted as bytes)

Which is precisely why I asked you to show me the entire configuration including the field name which you redacted ... looks like some prometheus field ... what is the mapping ... which can have an affect. I asked what the slice by etc... did you set the bytes in the slice by?

I will add what data view is this coming from?

Where are you getting `used` and `free` from?

There are a few places this could be (like the data view) or in the sliceby... or the data type..... So provide what you can ... I will see if I can help...

my suspicion (not fact)... not a bug but a setting somewhere but don't have enough to operate on...

---

<div class="post-metadata">

**Author:** ![erikg](https://avatars.discourse-cdn.com/v4/letter/e/91b2a8/32.png) [@erikg](https://discuss.elastic.co/u/erikg)\
**Post date:** [July 15, 2025, 6:28pm UTC](https://discuss.elastic.co/t/pie-chart-not-showing-bytes/380114/5 "2025-07-15T18:28:18Z")

</div>

> [@stephenb](#):
>
> So I asked if you could show me the **entire** config for the Pie Viz.

Hello @stephenb,  
Yes you have and I understand what you mean. I am trying to avoid sharing too much uneccessary info.

Continuing on, I think I figured out the issue:

Heres' a better example using common ecs fields:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/f/df652f752692c03ccdd65f65c52800f15ac9b0dc.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/9/29020be916766140d119a2c2cf029725b8f95e2e.png)

The issue appears when I try to add two metrics to compare against:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/6/86e167c4df8fc4d411dec18b9164fe67ba044403.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/d/add39130a1cc9228a5c70aed400e63729467b737.png)

Hopefully this makes more sense:

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [July 15, 2025, 7:07pm UTC](https://discuss.elastic.co/t/pie-chart-not-showing-bytes/380114/6 "2025-07-15T19:07:11Z")

</div>

> [@erikg](#):
>
> Yes you have and I understand what you mean. I am trying to avoid sharing too much uneccessary info.

🙂 .... the balance ... but no detail no answer.

I can reproduce now, I was missing setting layer setting use multiple metrics.

I will ask and see if we can get an answer

Perhaps @Marco_Liberati Might have an idea

Hiya Marco  
Use Lens Latest S  
Pie Chart  
Layer Setting multiple metrics  
Use 2 byte metrics  
I set the format in each to Bytes  
I also set in the data view to Bytes  
But the number in the pie chart is just a long not friendly Bytes... if I only have 1 metrics I get bytes

 ![Screenshot 2025-07-15 at 12.03.40 PM](https://us1.discourse-cdn.com/elastic/original/3X/7/f/7f6a6d2dfd8d0c0f91a0c47590ebdc42eb95e549.png)  
 ![Screenshot 2025-07-15 at 12.04.15 PM](https://us1.discourse-cdn.com/elastic/original/3X/e/8/e85221f67fb797539df8d27cc8a668c64f021159.png)

---

<div class="post-metadata">

**Author:** ![Marco\_Liberati](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marco_liberati/32/82953_2.png) [@Marco\_Liberati](https://discuss.elastic.co/u/Marco_Liberati)\
**Post date:** [July 28, 2025, 1:41pm UTC](https://discuss.elastic.co/t/pie-chart-not-showing-bytes/380114/7 "2025-07-28T13:41:22Z")

</div>

I can reproduce the issue.  
I've opened an issue you can track here about it: [[Lens] Pie chart in multiple metrics mode doesn't apply correct format to values · Issue #229644 · elastic/kibana · GitHub](https://github.com/elastic/kibana/issues/229644)
