add legend for zoom on zoomed graph