calculateCenterOffset method

double calculateCenterOffset()

Implementation

double calculateCenterOffset() {
  if (visibleLabels % 2 == 0) {
    return (visibleLabels - 2) / 2.0;
  } else {
    return (visibleLabels - 1) / 2.0;
  }
}