code: def get_gradient(self, value, colors, upper_limit=100):
          
          index = int(self.percentage(value, upper_limit))
          if index >= len(colors):
              return colors[-1]
          elif index < 0:
              return colors[0]
          else:
              return colors[index]
docs: Map a value to a color
          :param value: Some value
          :return: A Hex color code