#NEWLINE# def add_dataset( self , key , values , color = None ) : #NEWLINE# #INDENT# '\n        :param key: dataset name\n        :param values: List of dictionaries containing x and y values i.e. [{x=1, y=2}, ...]\n        :param color: HTML color value\n        ' #NEWLINE# d = dict ( key = key , values = values ) #NEWLINE# if color : #NEWLINE# #INDENT# d [ 'color' ] = color #NEWLINE# #UNINDENT# self . data . append ( d )