code: def set_values(self, values):
          
          self.values = values
          self.height = len(self.values) * 14
          self._max = max(rec[1] for rec in values) if values else dt.timedelta(0)
docs: expects a list of 2-tuples