code: def assignRenderer(self, action):
          
          name = nativestring(action.text()).split(' ')[0]
          self._renderer = XChartRenderer.plugin(name)
          self.uiTypeBTN.setDefaultAction(action)
          self.recalculate()
docs: Assigns the renderer for this chart to the current selected
          renderer.