(self, color)
Sets a color value for the chart.

        Args:
            color: a string with the color name to be added.
Sets a color value for the chart.
Sets a color value for the chart .
def set_color(self, color):
        """Sets a color value for the chart.

        Args:
            color: a string with the color name to be added.
        """
        self.values['color'] = color
        self.encoding['color'] = {
            'type': 'nominal', 'field': 'color', 'scale': None}
def set_color ( self , color ) : self . values [ 'color' ] = color self . encoding [ 'color' ] = { 'type' : 'nominal' , 'field' : 'color' , 'scale' : None }