need to calc graph height after legend has been rendered