'DEPRECATED.'

def AddSegments(self, points, labels, colors):

    warnings.warn('PieChart.AddSegments    is    deprecated.    Call    AddPie    instead.    ', DeprecationWarning, stacklevel=2)
    num_colors = len((colors or []))
    for (i, pt) in enumerate(points):
        assert (pt >= 0)
        label = labels[i]
        color = None
        if (i < num_colors):
            color = colors[i]
        self.AddSegment(pt, label=label, color=color)
