Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Define Pie Chart Colors Based on Legend Values

I have to create a bunch of charts with crop data. There are a lot of different crops and I need to create a lot of differnet charts. Particularly pie charts. Currently it seems I have to manually go through and change every value to the correct color based on what it is. Is it possible to define a macro or something that will set the color based on the legend key? Right now I only see theme, but I don't want the first 8 to have the same value every time. I want corn to always be yellow, cotton to always be white, watermelon to always be green, etc. No matter where in the data set it falls. See link for image

 

https://imgur.com/a/Y0a69LN

1 REPLY 1
v-chuncz-msft
Community Support
Community Support

@Anonymous ,

 

As far as I know, it is not yet supported. You may submit an idea via https://ideas.powerbi.com/forums/265200-power-bi.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.