add label formatting to graphs