cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Community Champion
Community Champion

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

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

Community Champion
Community Champion

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

AWESOME! Thank you!

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (9,405)