cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Power Automate Staff audrieg
Power Automate Staff

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

View solution in original post

3 REPLIES 3
Power Automate Staff audrieg
Power Automate Staff

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

View solution in original post

Power Automate Staff audrieg
Power Automate Staff

Re: Pie Chart Phantom Series

AWESOME! Thank you!

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

Power Apps Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (5,083)