code: def setDatasets(self, datasets):
          
          self.clearDatasets()
          self._datasets = datasets
          
          for dataset in datasets:
              self._addDatasetAction(dataset)
          
          self._dataChanged = True
          self.recalculate()
docs: Sets the dataset list for this chart to the inputed data.
          
          :param      datasets | [<XChartDataset>, ..]