move legend from chart to labels div