code: def set_items(self, items):
          
          res = []
          max_value = max(sum((rec[1] for rec in items)), 1)
          for key, val in items:
              res.append((key, val, val * 1.0 / max_value))
          self._items = res
docs: expects a list of key, value to work with