code: def data_object(self):
          
          data_obj = []
  
          for i in range(0, len(self.data)):
              obj = {
                  'value': self.data[i],
                  'label': self.labels[i],
                  'color': self.colors[i],
              }
              data_obj.append(obj)
          return data_obj
docs: List of dictionary contains value and labels associations.
  
          :return: list of dictionary
          :rtype: list[dict]