code: def _addDatasetAction(self, dataset):
          
          # create the toolbar action
          action = QAction(dataset.name(), self)
          action.setIcon(XColorIcon(dataset.color()))
          action.setCheckable(True)
          action.setChecked(True)
          action.setData(wrapVariant(dataset))
          action.toggled.connect(self.toggleDataset)
          
          self.uiDatasetTBAR.addAction(action)
docs: Adds an action for the inputed dataset to the toolbar
          
          :param      dataset | <XChartDataset>