cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Sienna
Memorable Member
Memorable Member

BUG REPORT: Pie chart color problems

The pie chart acting weird on iphone. The colors are completely different from set colors and placed in different order.

Here is piechart on pc which is correct (don't mind the circle in the middle)

desk.png

 

Here is what I get on iphone

iphones.png

 

Legend is custom made and uses same colors as piecharts Color.Green Color.Orange Color.Blue

1 ACCEPTED SOLUTION

Accepted Solutions

@Sienna I finally managed to reproduce the bug. It is caused by the delay in loading remote data which causes the pie chart to be not initialized correctly.

 

As a workaround, you can set the pie chart colors when the app screen is visible. For example:

  1. OnStart of the app, set a global variable x to some arbitrary set of colors. It doesn't matter because we will be replacing them in step 3.
  2. Set the PieChart.ItemColorSet to a global variable x.
  3. Then, for the screen with the pie chart, OnVisible = Set(x, [desired colors]).

 

This bug also affects the Column Chart. The fix would probably be out in a month's time.

View solution in original post

31 REPLIES 31
Sienna
Memorable Member
Memorable Member

Can anyone from pg take a look at it... I would really appreciate fix ASAP
wz366
Frequent Visitor

Can you reproduce the issue on android or webplayer? What version of PowerApps you are using on your iPhone?

How are the colors used in the PieChart? You can find this in ItemColorSet, in the Advanced panel of the Pie Chart. You also mentioned that you are creating your own legend. To clarify, you are not using the Legend control that comes with the Pie Chart, right?

Sienna
Memorable Member
Memorable Member

As you said... that is my own legend, not from pie chart legend and colors are as I mentioned above
[Color.Green, Color.Orange, Color.Blue]
Same are used in the custom legend which are correct in both OS. Only pie chart has faulty colors
Sienna
Memorable Member
Memorable Member

I forgot to tag you @tahoon

@Sienna One more thing, you mentioned that it worked on the desktop. Was it in the Studio or from the PowerApps Web Player? The PowerApps Web Player can be accessed from web.powerapps.com > select your app > click the Play button (not the Edit button). If you haven't tried the web player, it's worth testing to see if the problem also appears there.

Sienna
Memorable Member
Memorable Member

Just tried that and it comes with exactly same faulty colors as on iphone
Sienna
Memorable Member
Memorable Member

Sienna
Memorable Member
Memorable Member

Sorry and it works in studio

Helpful resources

Announcements
User Groups Public Preview

Join us for our User Group Public Preview!

Power Apps User Groups are coming! Make sure you’re among the first to know when user groups go live for public preview.

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (25,804)