def _get_data_components(self, coord):
        if coord == 'x':
            attribute = self.component
        else:
            raise TypeError('coord must be x')

        for data in self._data:
            try:
                yield data.get_component(attribute)
            except IncompatibleAttribute:
                pass
Returns the components for each dataset for x and y axes.
dataset/ETHPy150Open glue-viz/glue/glue/viewers/histogram/client.py/HistogramClient._get_data_components