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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors