script to focus on generated chart