Preserving legend when zooming

My legend zooms/pans along with chart, but I want it to stay the same size in the same position.

What’s the correct way to achieve this?

Can you provide a link or some sample code?