Dynamically adjust units in y axis