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

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,

 Missing Pie with extra seriesMissing Pie with extra series

Audrie

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Champion
Community Champion

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
Highlighted
Power Automate
Power Automate

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.

Highlighted
Community Champion
Community Champion

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

Highlighted
Power Automate
Power Automate

Re: Pie Chart Phantom Series

AWESOME! Thank you!

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

Top Solution Authors
Top Kudoed Authors
Users online (7,690)