#NEWLINE# def __init__( self , **kwargs ) : #NEWLINE# #INDENT# "\n        This is the base class for all the charts. The following keywords are\n        accepted:\n\n        :keyword: **display_container** - default: ``True``\n        :keyword: **jquery_on_ready** - default: ``False``\n        :keyword: **charttooltip_dateformat** - default: ``'%d %b %Y'``\n        :keyword: **name** - default: the class name\n                    ``model`` - set the model (e.g. ``pieChart``, `\n                    ``LineWithFocusChart``, ``MultiBarChart``).\n        :keyword: **color_category** - default - ``None``\n        :keyword: **color_list** - default - ``None``\n                  used by pieChart (e.g. ``['red', 'blue', 'orange']``)\n        :keyword: **margin_bottom** - default - ``20``\n        :keyword: **margin_left** - default - ``60``\n        :keyword: **margin_right** - default - ``60``\n        :keyword: **margin_top** - default - ``30``\n        :keyword: **height** - default - ``''``\n        :keyword: **width** - default - ``''``\n        :keyword: **stacked** - default - ``False``\n        :keyword: **focus_enable** - default - ``False``\n        :keyword: **resize** - define - ``False``\n        :keyword: **xAxis_rotateLabel** - default - ``0``\n        :keyword: **show_controls** - default - ``True``\n        :keyword: **show_legend** - default - ``True``\n        :keyword: **show_labels** - default - ``True``\n        :keyword: **tag_script_js** - default - ``True``\n        :keyword: **use_interactive_guideline** - default - ``False``\n        :keyword: **chart_attr** - default - ``None``\n        :keyword: **extras** - default - ``None``\n\n            Extra chart modifiers. Use this to modify different attributes of\n            the chart.\n        :keyword: **x_axis_date** - default - False\n            Signal that x axis is a date axis\n        :keyword: **date_format** - default - ``%x``\n                  see https://github.com/mbostock/d3/wiki/Time-Formatting\n        :keyword: **y_axis_scale_min** - default - ``''``.\n        :keyword: **y_axis_scale_max** - default - ``''``.\n        :keyword: **x_axis_format** - default - ``''``.\n        :keyword: **y_axis_format** - default - ``''``.\n        :keyword: **style** - default - ``''``\n            Style modifiers for the DIV container.\n        :keyword: **color_category** - default - ``category10``\n\n            Acceptable values are nvd3 categories such as\n            ``category10``, ``category20``, ``category20c``.\n        " #NEWLINE# self . model = h . __class__ . __name__ #NEWLINE# self . template_page_nvd3 = template_page #NEWLINE# self . template_content_nvd3 = template_content #NEWLINE# self . series = [ ] #NEWLINE# self . axislist = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . display_container = kwargs . get ( 'display_container' , True ) #NEWLINE# self . charttooltip_dateformat = kwargs . get ( 'charttooltip_dateformat' , '%d %b %Y' ) #NEWLINE# self . _slugify_name ( kwargs . get ( 'name' , self . model ) ) #NEWLINE# self . jquery_on_ready = kwargs . get ( 'jquery_on_ready' , False ) #NEWLINE# self . color_category = kwargs . get ( 'color_category' , None ) #NEWLINE# self . color_list = kwargs . get ( 'color_list' , None ) #NEWLINE# self . margin_bottom = kwargs . get ( 'margin_bottom' , 20 ) #NEWLINE# self . margin_left = kwargs . get ( 'margin_left' , 60 ) #NEWLINE# self . margin_right = kwargs . get ( 'margin_right' , 60 ) #NEWLINE# self . margin_top = kwargs . get ( 'margin_top' , 30 ) #NEWLINE# self . height = kwargs . get ( 'height' , '' ) #NEWLINE# self . width = kwargs . get ( 'width' , '' ) #NEWLINE# self . stacked = kwargs . get ( 'stacked' , False ) #NEWLINE# self . focus_enable = kwargs . get ( 'focus_enable' , False ) #NEWLINE# self . resize = kwargs . get ( 'resize' , False ) #NEWLINE# self . xAxis_rotateLabel = kwargs . get ( 'xAxis_rotateLabel' , 0 ) #NEWLINE# self . show_controls = kwargs . get ( 'show_controls' , True ) #NEWLINE# self . show_legend = kwargs . get ( 'show_legend' , True ) #NEWLINE# self . show_labels = kwargs . get ( 'show_labels' , True ) #NEWLINE# self . tag_script_js = kwargs . get ( 'tag_script_js' , True ) #NEWLINE# self . use_interactive_guideline = kwargs . get ( 'use_interactive_guideline' , False ) #NEWLINE# self . chart_attr = kwargs . get ( 'chart_attr' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# self . extras = kwargs . get ( 'extras' , None ) #NEWLINE# self . style = kwargs . get ( 'style' , '' ) #NEWLINE# self . date_format = kwargs . get ( 'date_format' , '%x' ) #NEWLINE# self . x_axis_date = kwargs . get ( 'x_axis_date' , False ) #NEWLINE# self . y_axis_scale_min = kwargs . get ( 'y_axis_scale_min' , '' ) #NEWLINE# self . y_axis_scale_max = kwargs . get ( 'y_axis_scale_max' , '' ) #NEWLINE# self . date_flag = kwargs . get ( 'date_flag' , False ) #NEWLINE# self . x_axis_format = kwargs . get ( 'x_axis_format' , '' ) #NEWLINE# self . remote_js_assets = kwargs . get ( 'remote_js_assets' , True ) #NEWLINE# self . callback = kwargs . get ( 'callback' , None ) #NEWLINE# self . htmlcontent = '' #NEWLINE# self . htmlheader = '' #NEWLINE# self . container = '' #NEWLINE# self . containerheader = '' #NEWLINE# self . header_css = [ ( '<link href="%s" rel="stylesheet" />' % h ) for h in ( ( 'https://cdnjs.cloudflare.com/ajax/libs/nvd3/1.7.1/nv.d3.min.css' if self . remote_js_assets else ( self . assets_directory + 'nvd3/src/nv.d3.css' ) ) , ) ] #NEWLINE# self . header_js = [ ( '<script src="%s"></script>' % h ) for h in ( ( 'https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js' if self . remote_js_assets else ( self . assets_directory + 'd3/d3.min.js' ) ) , ( 'https://cdnjs.cloudflare.com/ajax/libs/nvd3/1.7.1/nv.d3.min.js' if self . remote_js_assets else ( self . assets_directory + 'nvd3/nv.d3.min.js' ) ) ) ] #NEWLINE# self . jschart = None #NEWLINE# self . custom_tooltip_flag = False #NEWLINE# self . tooltip_condition_string = '' #NEWLINE# self . charttooltip = '' #NEWLINE# self . serie_no = 1