Iframe time to change with dashboard time

How can I get an iframe embedded on a dashboard to inherit the timepicker for the dash. For example, I have 2 graphs for displaying metrics for one site. 1 graph displays metrics for the gen1 setup and the second graph displays metrics for the gen2 setup. I have one iframe embedded that rotates between the 2 graphs every 15 seconds. I have numerous other graphs added to the dashboard that are not iframes. If i change the time picker from 3 hours to 12 hours, all the non-iframe graphs update; however, the iframe graphs do not.

I make a lot of my graphs through trial and error and I can’t figure this out. I’ve read on some forums that a javascript is needed but I can’t figure that out either.

Any help or guidance is appreciated!