public void calcMaxTick(){
  if (maxData == 0) {
    maxTick=0;
  }
 else   if (maxData < 0.0) {
    maxTick=-Math.floor(-maxData / majorTick) * majorTick;
  }
 else {
    maxTick=Math.ceil(maxData / majorTick) * majorTick;
  }
}

public void calcMaxTick ( ) { if ( maxData == 0 ) { maxTick = 0 ; } else if ( maxData < 0.0 ) { maxTick = - Math . floor ( - maxData / majorTick ) * majorTick ; } else { maxTick = Math . ceil ( maxData / majorTick ) * majorTick ; } }
calculate the optimum maximum tick . override to change default behaviour
