How to re-apply last zoom

Hi all!
How to automatically save js zoom setting to apply the same zoom to a new graph (of the same type)?
Thank you!