legend upon resize
legend upon resize