#NEWLINE# def __init__( self , options = None ) : #NEWLINE# #INDENT# '\n        Constructor.\n\n        ' #NEWLINE# super ( ChartBar , self ) . __init__ ( ) #NEWLINE# if ( options is None ) : #NEWLINE# #INDENT# options = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# self . subtype = options . get ( 'subtype' ) #NEWLINE# if ( not self . subtype ) : #NEWLINE# #INDENT# self . subtype = 'clustered' #NEWLINE# #UNINDENT# self . cat_axis_position = 'l' #NEWLINE# self . val_axis_position = 'b' #NEWLINE# self . horiz_val_axis = 0 #NEWLINE# self . horiz_cat_axis = 1 #NEWLINE# self . show_crosses = 0 #NEWLINE# self . x_axis [ 'defaults' ] [ 'major_gridlines' ] = { #NEWLINE# #INDENT# 'visible' : 1 , #NEWLINE# #UNINDENT# } #NEWLINE# self . y_axis [ 'defaults' ] [ 'major_gridlines' ] = { #NEWLINE# #INDENT# 'visible' : 0 , #NEWLINE# #UNINDENT# } #NEWLINE# if ( options . subtype == 'percent_stacked' ) : #NEWLINE# #INDENT# self . x_axis [ 'defaults' ] [ 'num_format' ] = '0%' #NEWLINE# #UNINDENT# self . label_position_default = 'outside_end' #NEWLINE# self . label_positions = { #NEWLINE# #INDENT# 'center' : 'ctr' , #NEWLINE# 'inside_base' : 'inBase' , #NEWLINE# 'inside_end' : 'inEnd' , #NEWLINE# 'outside_end' : 'outEnd' , #NEWLINE# #UNINDENT# } #NEWLINE# self . set_x_axis ( { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# self . set_y_axis ( { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } )