move legends besides graphs