#NEWLINE# def AddBars( self , points , label = None , color = None ) : #NEWLINE# #INDENT# "Add a series of bars to the chart.\n\n      points: List of y-values for the bars in this series\n      label:  Name of the series (used in the legend)\n      color:  Hex string, like '00ff00' for green\n\n    This is a convenience method which constructs & appends the DataSeries for\n    you.\n    " #NEWLINE# if ( ( label is not None ) and util . _IsColor ( label ) ) : #NEWLINE# #INDENT# warnings . warn ( 'Your code may be broken! Label is a hex triplet.  Maybe it is a color? The old argument order (color before label) is deprecated.' , DeprecationWarning , stacklevel = 2 ) #NEWLINE# #UNINDENT# style = BarsStyle ( color ) #NEWLINE# series = common . DataSeries ( points , label = label , style = style ) #NEWLINE# self . data . append ( series ) #NEWLINE# return series