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
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (1,559)