cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Resolver I
Resolver I

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
Resolver I
Resolver I

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.

View solution in original post

1 REPLY 1
Resolver I
Resolver I

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.

View solution in original post

Helpful resources

Announcements
Ignite

Microsoft Ignite

This will be a conference that you do not want to miss!

secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (5,451)