cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ANunez
Frequent Visitor

Set color to values of Pie Chart

Hi

Im new in Power apps

i have an app with a PieChart

Captura.PNG

 

I want to set the color of each value, now the colors change with the count, i want Green='Completed', Yellow='In Progress', Red='Cancelled'

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User
Super User

@ANunez 

That is great, but you cannot "assign" a color to a status value.  As I mentioned, you set the ItemColorSet property to a table of colors that will be applied based on the order of the Items property.

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

4 REPLIES 4
RandyHayes
Super User
Super User

@ANunez 

You will need to provide a table of colors to the ItemColorSet property of the chart.

The color set table will need to have its colors in the same order as your records in the items property.

So, for example, if you had [Green, Yellow, Red] in the ItemColorSet property, then the first record of the Items property would be Green, the second, Yellow and the third Red.

 

There are tricks to getting this correct, so if you are still stuck, then provide the Items property of the chart in a text response.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Thx Randy

I want ever this order of colors

Green = "Completed"

Yellow = "In Progress"

Red = "Cancelled

Blue = "New"

RandyHayes
Super User
Super User

@ANunez 

That is great, but you cannot "assign" a color to a status value.  As I mentioned, you set the ItemColorSet property to a table of colors that will be applied based on the order of the Items property.

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!
RandyHayes
Super User
Super User

@ANunez 

You marked this as a solution...were you able to work out the ItemColorSet table then?  

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (3,125)