# How to customize poll pie chart colors?

**URL:** https://meta.discourse.org/t/how-to-customize-poll-pie-chart-colors/149126
**Category:** Support
**Tags:** polls
**Created:** [April 24, 2020, 9:37am UTC](https://meta.discourse.org/t/how-to-customize-poll-pie-chart-colors/149126 "2020-04-24T09:37:22Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![csandstedt](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/csandstedt/32/170079_2.png) [@csandstedt](https://meta.discourse.org/u/csandstedt)
#### Post date: [April 24, 2020, 9:37am UTC](https://meta.discourse.org/t/how-to-customize-poll-pie-chart-colors/149126/1 "2020-04-24T09:37:22Z")

</div>

How can I change the colors in the pie charts being used in polls?

 ![image](https://global.discourse-cdn.com/meta/original/3X/8/3/83b37925502ac3ea8daf892f859cde1235aeff8c.png)

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [June 6, 2024, 6:23pm UTC](https://meta.discourse.org/t/how-to-customize-poll-pie-chart-colors/149126/3 "2024-06-06T18:23:12Z")

</div>



---

<div class="post-metadata">

### Author: ![ZeroDean](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zerodean/32/527869_2.png) [@ZeroDean](https://meta.discourse.org/u/ZeroDean)
#### Post date: [December 5, 2025, 3:47pm UTC](https://meta.discourse.org/t/how-to-customize-poll-pie-chart-colors/149126/4 "2025-12-05T15:47:40Z")

</div>

It doesn’t look like this was ever answered. I’m looking for this answer, too.

I would also like to adjust colors because the colors are just a gradient and not easy to determine at a glance when there are many choices.

Manually adjusting colors or having them be based on a complementary color pallette or something more distinct for would be beneficial

 ![Screenshot_20251205_074255_Chrome](https://global.discourse-cdn.com/meta/original/4X/4/d/d/4dd0c2126d83b4726f69bb6aebb4974a20c785d3.jpeg)

---

<div class="post-metadata">

### Author: ![chapoi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chapoi/32/537252_2.png) [@chapoi](https://meta.discourse.org/u/chapoi)
#### Post date: [December 5, 2025, 4:35pm UTC](https://meta.discourse.org/t/how-to-customize-poll-pie-chart-colors/149126/5 "2025-12-05T16:35:14Z")

</div>

I think this is not possible, or at least, I wouldn’t know about it.

The bar chart could be done via CSS, but the pie chart is rendered as an entire canvas, so can’t target any separate HTML.

Your best bet might be to make a feature request, or marketplace topic about this.

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [December 5, 2025, 9:53pm UTC](https://meta.discourse.org/t/how-to-customize-poll-pie-chart-colors/149126/7 "2025-12-05T21:53:35Z")

</div>

It’s not currently possible, but it is something we’ve done in canvas elements before so we can also make it possible here!

This was just merged

[https://github.com/discourse/discourse/pull/36495](https://github.com/discourse/discourse/pull/36495)

So if you update Discourse a little later today, you’ll have access to some new variables for both bar and pie charts:

```css
:root {
  --poll-pie-color-1: red;
  --poll-pie-color-2: yellow;
  /* --poll-pie-color-3: hotpink; etc */
        
  --poll-bar-background: lightblue;
  --poll-bar-color: blue;
  --poll-bar-color--chosen: salmon;
}

```
