When I toggle, the variable typically doesn't hold the function, just the value itself. The function lives in the Button trigger. Also, remember to create and initialize the variable to one of its two possible values.
thank you everyone for your responses, i now have it working. although the the graphs will change with the toggle button and no longer with the selection list box, is it possible to allow it to change with both?
Please be sure to mark any posts that helped you resolve the issue with the Accept as Solution button, and if the other posts did not help, and you solved it yourself, please provide details of what you did to solve it and then mark that post as the solution. If you still need further help, please provide a further update/information as well.
To help users find verified answers, please don't forget to use the "Accept as Solution" button on any posts that helped you resolve your problem or question.