Clicking thumbnails makes graph appear