plotAxisLabel method

String plotAxisLabel()

Implementation

String plotAxisLabel() {
  if (inSeconds.abs() < 120) {
    return "${inSeconds.abs()} Sekunden";
  } else if (inMinutes.abs() < 120) {
    return "${(inSeconds.abs() / 60).round()} Minuten";
  } else {
    return "${inHours.abs()} Stunden";
  }
}