# Pie chart labels canvas

**URL:** <https://discuss.elastic.co/t/pie-chart-labels-canvas/291351>\
**Category:** Kibana\
**Tags:** canvas\
**Created:** [December 9, 2021, 4:48pm UTC](https://discuss.elastic.co/t/pie-chart-labels-canvas/291351 "2021-12-09T16:48:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MTV](https://avatars.discourse-cdn.com/v4/letter/m/a6a055/32.png) [@MTV](https://discuss.elastic.co/u/MTV)\
**Post date:** [December 9, 2021, 4:48pm UTC](https://discuss.elastic.co/t/pie-chart-labels-canvas/291351/1 "2021-12-09T16:48:39Z")

</div>

Hi,

I have a pie chart in canvas that I would like to only show the percentage in the pie, and next to it the legend. I tried to clink in `inspect` to try some CSS but with no avail, because I just don't know what I'm doing, and I can't find info regarding the possible usages of CSS in canvas.

The reason I just want to show percentage is that my labels are a bit big (2 or 3 words) and the pie does not look good. Furthermore, since we have the possibility to also have a legend, why show everything? It's honestly a mess of labels.

I am also aware that I can import the pie from Lens or Aggregations, but the font size is huge, and if I try to minize the visualization, almost all labels are gone! Same goes for the treemap. Not an option to show visualizations like this to a client.

So my questions:

- Is it possible to only show percentages in the pie chart in canvas (and then show the legend with the labels). If not,
- Is it possible to change the font size in a pie chart in lens or Aggregations?
- Finally, can you help in finding documentation regarding the usage of CSS in canvas?

I would really appreciate your help. 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:** [January 6, 2022, 4:49pm UTC](https://discuss.elastic.co/t/pie-chart-labels-canvas/291351/2 "2022-01-06T16:49:29Z")

</div>

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