cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
codebrane
Level 8

Programatically change Chart.Items and Chart.Series1

I have a bar chart with Items set to:

 

AddColumns(Filter('TestList', StudentId = Student.StudentId),"Test Name",TestName.Value)

 

and Series1 set to "Test Name" and all is working.

 

I need to change Chart.Items and Chart.Series1 on the fly, based on a droplist selection, so a new bar chart displays with the new data. Is this possible? Trying from a button doesn't work as there is no way to access Chart.Items or Chart.Series1 from code. Looks like I can only affect the look and feel of the chart rather than the data it displays.

 

thanks,

 

Alistair

 

1 ACCEPTED SOLUTION

Accepted Solutions
codebrane
Level 8

Re: Programatically change Chart.Items and Chart.Series1

Turns out I can do it by creating a collection in OnVisible and using that as the Chart.Items. In the button or drop down, I can then manipulate the collection and the chart updates automatically.

1 REPLY 1
codebrane
Level 8

Re: Programatically change Chart.Items and Chart.Series1

Turns out I can do it by creating a collection in OnVisible and using that as the Chart.Items. In the button or drop down, I can then manipulate the collection and the chart updates automatically.

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: 162 members 4,779 guests
Please welcome our newest community members: