allows for setting [vertical] or [horizontal] graphs