# Pie chart: Custom color settings and legend font size

**URL:** https://discuss.elastic.co/t/pie-chart-custom-color-settings-and-legend-font-size/332280
**Category:** Kibana
**Created:** [May 2, 2023, 1:09pm UTC](https://discuss.elastic.co/t/pie-chart-custom-color-settings-and-legend-font-size/332280 "2023-05-02T13:09:37Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Rama\_Krishna2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rama_krishna2/32/118451_2.png) [@Rama\_Krishna2](https://discuss.elastic.co/u/Rama_Krishna2)
#### Post date: [May 2, 2023, 1:09pm UTC](https://discuss.elastic.co/t/pie-chart-custom-color-settings-and-legend-font-size/332280/1 "2023-05-02T13:09:37Z")

</div>

I have recently started working with Kibana version 7.17.3 and have two issues that I need help with. Firstly, I want to create a custom color range for a pie chart. Specifically, I want to use shades of red for each slice, with darker shades for the top slice and lighter shades as we move down. Currently, Kibana has a default color range called "negative" which starts with a light shade of red and goes to dark, but I want the opposite.

Secondly, I have a problem with resizing pie charts in a dashboard. When I try to resize the chart, it becomes smaller, but the legend stays the same size. I don't understand why this is happening.

I would appreciate any help or guidance on these issues. Thank you!

---

<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: [May 3, 2023, 10:42am UTC](https://discuss.elastic.co/t/pie-chart-custom-color-settings-and-legend-font-size/332280/2 "2023-05-03T10:42:16Z")

</div>

Hi @Rama_Krishna2

welcome to the Kibana community.  
It is not possible yet to customize the palette in a pie chart. There's an issue here about enhancing the current palette "experience" in Lens which might be tracked for future progress: [[Lens] Color mappings MVP · Issue #155037 · elastic/kibana · GitHub](https://github.com/elastic/kibana/issues/155037)

As for the resizing, the legend font is set to a fixed size in that kibana version. In 8.1 and newer versions has been introduced a way to change a bit the legend size to small/medium/large sizes.  
Also in 8.1 the pie chart will make a better usage of the available space in the panel.

---

<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: [May 31, 2023, 10:43am UTC](https://discuss.elastic.co/t/pie-chart-custom-color-settings-and-legend-font-size/332280/3 "2023-05-31T10:43:13Z")

</div>

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