def METHOD_NAME(self):
    """Randomize chart datasets colors."""
    if self.type in [POLAR_CHART, PIE_CHART, DOUGHNUT_CHART]:
        for dataset in self.data.datasets:
            dataset.backgroundColor = [random_rgba_color()
                                       for _ in range(0, len(dataset.data))]
    else:
        for dataset in self.data.datasets:
            dataset.backgroundColor = random_rgba_color()