# Pie Chart Slice Colors - assigning same color to data

**URL:** <https://forum.adalo.com/t/pie-chart-slice-colors-assigning-same-color-to-data/43298>\
**Category:** Get Help\
**Created:** [November 16, 2023, 12:21pm UTC](https://forum.adalo.com/t/pie-chart-slice-colors-assigning-same-color-to-data/43298 "2023-11-16T12:21:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![GOB](https://avatars.discourse-cdn.com/v4/letter/g/fbc32d/32.png) [@GOB](https://forum.adalo.com/u/GOB)\
**Post date:** [November 16, 2023, 12:21pm UTC](https://forum.adalo.com/t/pie-chart-slice-colors-assigning-same-color-to-data/43298/1 "2023-11-16T12:21:27Z")

</div>

Hello,

I am using a pie chart to display the count of a category in a collection.

That category is a count of colors chosen by a user.

So there may be 10 red, 5 green, 3 yellow, etc.

It is working well in terms of getting the correct data!

I would like to fix the colors of the pie chart, though, so the red slice correlates to red, etc.

When I assign specific colors to the slices, though, they do not always correspond with the same category, the color is just assigned to the first data that are retrieved.

For example, if I have defined  
Slice 1 - green  
Slice 2 - yellow  
Slice 3 - orange  
Slice 4 - red

But then the user enters a choice of red, then later yellow, the first slice gets assigned to the red choice but its color is green.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/b/c/bce81e3dd466c872b578b5784c5bcc385c8159f7.png)

Any ideas on a solution to this?

Thanks!!

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/system/32/40401_2.png) [@system](https://forum.adalo.com/u/system)\
**Post date:** [November 26, 2023, 12:21pm UTC](https://forum.adalo.com/t/pie-chart-slice-colors-assigning-same-color-to-data/43298/2 "2023-11-26T12:21:43Z")

</div>

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