cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
audrieg
Level 10

Pie Chart Phantom Series

Does anyone see why I might be getting a weird series named Item(1) or Item(2) with this button press? My pie chart isn't drawing and the legend is show Item(1) etc. in addition to Red, Green, Blue series intended (Note: I am clearing the Collection on form open (ClearCollect(PieChart1Test,"Red","Green","Blue")

 

Collect( PieChart1Test,
{Color:"Red",Quantity:MySlider1.Value},
{Color:"Green",Quantity:MySlider1_1.Value},
{Color:"Blue",Quantity:MySlider1_2.Value} )

 

I am using it on a pie chart where the items property is set to PieChart1Test. (The Quantity value of each are coming from 3 sliders with a max value of 255.)

 

Thank you in advance for your help,

 chartscreenshot.PNGMissing Pie with extra series

Audrie

1 ACCEPTED SOLUTION

Accepted Solutions
mr-dang
Level 10

Re: Pie Chart Phantom Series

Not sure why you are getting those phantom series.

 

On an unrelated note if you want your PieChart to be more dynamic instead of being built by a button press, you can use the Table() function. Set the PieChart.Items property to:

 

Table(
{Color:"Red",Quantity:MySlider1.Value},
{Color:"Green",Quantity:MySlider1_1.Value},
{Color:"Blue",Quantity:MySlider1_2.Value}
)

This way, the Pie Chart changes real-time instead of waiting for a click of a button.

 

Maybe that might get rid of the phantom series too.

 

Microsoft Employee
@8bitclassroom
3 REPLIES 3
audrieg
Level 10

Re: Pie Chart Phantom Series

I got it to work by using a Clear(PieChartTest1); at the start of the button code. Otherwise it just stacks up the collection.

mr-dang
Level 10

Re: Pie Chart Phantom Series

Not sure why you are getting those phantom series.

 

On an unrelated note if you want your PieChart to be more dynamic instead of being built by a button press, you can use the Table() function. Set the PieChart.Items property to:

 

Table(
{Color:"Red",Quantity:MySlider1.Value},
{Color:"Green",Quantity:MySlider1_1.Value},
{Color:"Blue",Quantity:MySlider1_2.Value}
)

This way, the Pie Chart changes real-time instead of waiting for a click of a button.

 

Maybe that might get rid of the phantom series too.

 

Microsoft Employee
@8bitclassroom
audrieg
Level 10

Re: Pie Chart Phantom Series

AWESOME! Thank you!

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Next Wednesday, September 18th at 8am PDT

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 71 members 4,343 guests
Please welcome our newest community members: