'Construct a new BarChartEncoder.
Args:
style: DEPRECATED.  Set style on the chart object itself.'

def __init__(self, chart, style=None):

    super(BarChartEncoder, self).__init__(chart)
    if (style is not None):
        warnings.warn(self.__STYLE_DEPRECATION, DeprecationWarning, stacklevel=2)
        chart.style = style
