code: def setLegendData(self, *args, **kwargs):
          
          self.legendData = buildLegend(*args, key=self.legendKeyFunc, **kwargs)
docs: Set or genernate the legend data from this canteen.
              Uses :py:func:`.buildLegend` for genernating