Forum Discussion
Infuence pie chart with variables
Owen,
I thought about it and I was wondering if you published the project on a webserver or did you opened it local on your PC? Because it contains a extern JS file the project needs to be published online otherwise it would not work.
That was exactly it. I published to our LMS and it opens fine. However, after modifying my slide to include an input form to change the variables, I ran into an issue where the new numbers are not reflected. I believe it is due to the window.onload = function() command in the code. I wonder if there is another way of triggering the function or delaying when the window loads or refreshing the iframe to get the current data....
Any ideas?
- Innowijs9 years agoCommunity Member
Owen,
That's great to hear that it works!
Do you have your results on the same slide as the variable input?
As far as I know the JS script will load when the slide appears, this means he's tracking the values of the variable at that moment. When you change your variables and don't refresh the slide in some way, the results appear the same. This is why I put my result slide after the variable input.
Or you can put a button in your slide that "calculates" the results.I hope that this helps. :)
Related Content
- 10 months ago
- 10 months ago
- 10 months ago
- 10 months ago