Do not resize graphs that are not visible.

This is needed for the tab story. Currently, the window.resize
event resizes all graphs on the page, even ones that are
currently hidden.

This causes problems: so don't resize graphs that aren't visible.