<s> from . mg import OptionHelper <EOL> class Graphic ( OptionHelper ) : <EOL> """<STR_LIT>""" <EOL> _allowed_graphics = [ <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT:error>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT:list>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT:target>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" <EOL> ] <EOL> _allowed_charts = [ "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT:bar>" , "<STR_LIT>" ] <EOL> _allowed_interpolates = [ <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" <EOL> ] <EOL> def aggregate_rollover ( self ) : <EOL> self . set_boolean ( "<STR_LIT>" , True ) <EOL> def animate_on_load ( self ) : <EOL> self . set_boolean ( "<STR_LIT>" , True ) <EOL> def area ( self , value = True ) : <EOL> self . set_boolean ( "<STR_LIT>" , value ) <EOL> def add_baseline ( self , value , label = "<STR_LIT>" ) : <EOL> self . options [ "<STR_LIT>" ] = [ { "<STR_LIT:value>" : value , "<STR_LIT:label>" : label } ] <EOL> def chart_type ( self , value ) : <EOL> """<STR_LIT>""" <EOL> if value not in self . _allowed_charts : <EOL> raise ValueError ( "<STR_LIT>" ) <EOL> self . options [ "<STR_LIT>" ] = value <EOL> def custom_line_color_map ( self , values ) : <EOL> """<STR_LIT>""" <EOL> if not isinstance ( values , list ) : <EOL> raise TypeError ( "<STR_LIT>" ) <EOL> self . options [ "<STR_LIT>" ] = values <EOL> def decimals ( self , value ) : <EOL> """<STR_LIT>""" <EOL> self . set_integer ( "<STR_LIT>" , value ) <EOL> def error ( self , value ) : <EOL> """<STR_LIT>""" <EOL> self . set_string ( "<STR_LIT:error>" , value ) <EOL> def format ( self , value ) : <EOL> """<STR_LIT>""" <EOL> if value not in [ "<STR_LIT:count>" , "<STR_LIT>" ] : <EOL> raise ValueError ( "<STR_LIT>" ) <EOL> self . options [ "<STR_LIT>" ] = value <EOL> def full_height ( self ) : <EOL> """<STR_LIT>""" <EOL> self . set_boolean ( "<STR_LIT>" , True ) <EOL> def full_width ( self ) : <EOL> """<STR_LIT>""" <EOL> self . set_boolean ( "<STR_LIT>" , True ) <EOL> def interpolate ( self , value ) : <EOL> """<STR_LIT>""" <EOL> if value not in _allowed_interpolates : <EOL> raise ValueError ( "<STR_LIT>" ) <EOL> self . options [ "<STR_LIT>" ] = value <EOL> def interpolate_tension ( self , value ) : <EOL> """<STR_LIT>""" <EOL> if ( value < <NUM_LIT:0> ) or ( value > <NUM_LIT:1> ) : <EOL> raise ValueError ( "<STR_LIT>" ) <EOL> self . options [ "<STR_LIT>" ] = value <EOL> def legend ( self , values ) : <EOL> """<STR_LIT>""" <EOL> if not isinstance ( values , list ) : <EOL> raise TypeError ( "<STR_LIT>" ) <EOL> self . options [ "<STR_LIT>" ] = values <EOL> def legend_target ( self , value ) : <EOL> """<STR_LIT>""" <EOL> self . set_string ( "<STR_LIT>" , value ) <EOL> def linked ( self ) : <EOL> """<STR_LIT>""" <EOL> self . set_boolean ( "<STR_LIT>" , True ) <EOL> def linked_format ( self , value ) : <EOL> """<STR_LIT>""" <EOL> self . set_string ( "<STR_LIT>" , value ) <EOL> def as_list ( self ) : <EOL> """<STR_LIT>""" <EOL> self . set_boolean ( "<STR_LIT:list>" , True ) <EOL> def markers ( self , values ) : <EOL> """<STR_LIT>""" <EOL> if not isinstance ( values , list ) : <EOL> raise TypeError ( "<STR_LIT>" ) <EOL> self . options [ "<STR_LIT>" ] = values <EOL> def max_data_size ( self , value ) : <EOL> """<STR_LIT>""" <EOL> self . set_integer ( "<STR_LIT>" , value ) <EOL> def missing_text ( self , value ) : <EOL> """<STR_LIT>""" <EOL> self . set_string ( "<STR_LIT>" , value ) <EOL> def show_missing_background ( self , value = True ) : <EOL> """<STR_LIT>""" <EOL> self . set_boolean ( "<STR_LIT>" , value ) <EOL> def point_size ( self , value ) : <EOL> """<STR_LIT>""" <EOL> self . set_float ( "<STR_LIT>" , value ) <EOL> def show_confidence_band ( self , value ) : <EOL> """<STR_LIT>""" <EOL> if not isinstance ( values , list ) : <EOL> raise TypeError ( "<STR_LIT>" ) <EOL> self . options [ "<STR_LIT>" ] = values <EOL> def show_rollover_text ( self , value = True ) : <EOL> """<STR_LIT>""" <EOL> self . set_boolean ( "<STR_LIT>" , value ) <EOL> def show_tooltips ( self , value = True ) : <EOL> """<STR_LIT>""" <EOL> self . set_boolean ( "<STR_LIT>" , value ) <EOL> def target ( self , value ) : <EOL> """<STR_LIT>""" <EOL> self . set_string ( "<STR_LIT:target>" , value ) <EOL> def transition_on_update ( self , value = True ) : <EOL> """<STR_LIT>""" <EOL> self . set_boolean ( "<STR_LIT>" , value ) <EOL> def x_rug ( self ) : <EOL> self . set_boolean ( "<STR_LIT>" , True ) <EOL> def y_rug ( self ) : <EOL> self . set_boolean ( "<STR_LIT>" , True ) <EOL> def get ( self ) : <EOL> """<STR_LIT>""" <EOL> return { k : v for k , v in list ( self . options . items ( ) ) if k in self . _allowed_graphics } </s>
