<s> """<STR_LIT>""" <EOL> from . NVD3Chart import NVD3Chart , TemplateMixin <EOL> class discreteBarChart ( TemplateMixin , NVD3Chart ) : <EOL> """<STR_LIT>""" <EOL> CHART_FILENAME = "<STR_LIT>" <EOL> template_chart_nvd3 = NVD3Chart . template_environment . get_template ( CHART_FILENAME ) <EOL> def __init__ ( self , ** kwargs ) : <EOL> super ( discreteBarChart , self ) . __init__ ( ** kwargs ) <EOL> self . model = '<STR_LIT>' <EOL> height = kwargs . get ( '<STR_LIT>' , <NUM_LIT> ) <EOL> width = kwargs . get ( '<STR_LIT:width>' , None ) <EOL> if kwargs . get ( '<STR_LIT>' , False ) : <EOL> self . set_date_flag ( True ) <EOL> self . create_x_axis ( '<STR_LIT>' , <EOL> format = kwargs . get ( '<STR_LIT>' , <EOL> "<STR_LIT>" ) , <EOL> date = True ) <EOL> else : <EOL> self . create_x_axis ( '<STR_LIT>' , format = None ) <EOL> self . create_y_axis ( '<STR_LIT>' , format = kwargs . get ( '<STR_LIT>' , "<STR_LIT>" ) ) <EOL> self . set_custom_tooltip_flag ( True ) <EOL> self . set_graph_height ( height ) <EOL> if width : <EOL> self . set_graph_width ( width ) <EOL> tooltips = kwargs . get ( '<STR_LIT>' , True ) <EOL> if not tooltips : <EOL> self . chart_attr = { '<STR_LIT>' : '<STR_LIT:false>' } </s>
