#NEWLINE# def create_y_axis( self , name , label = None , format = None , custom_format = False ) : #NEWLINE# #INDENT# '\n        Create Y-axis\n        ' #NEWLINE# axis = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# if ( custom_format and format ) : #NEWLINE# #INDENT# axis [ 'tickFormat' ] = format #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if format : #NEWLINE# #INDENT# axis [ 'tickFormat' ] = ( "d3.format(',%s')" % format ) #NEWLINE# #UNINDENT# #UNINDENT# if label : #NEWLINE# #INDENT# axis [ 'axisLabel' ] = ( ( "'" + label ) + "'" ) #NEWLINE# #UNINDENT# self . axislist [ name ] = axis