def hist(self,xdata,disp=True,**kwargs):
        '''Graphs a histogram.
        
        xdata: List of values to bin. Can optionally include a header, see testGraph_barAndHist.py in https://github.com/Dfenestrator/GooPyCharts for an example.
        disp: for displaying plots immediately. Set to True by default. Set to False for other operations, then use show() to display the plot.
        **kwargs: Access to other Google Charts API options. The key is the option name, the value is the option's full JS code.
        '''
                
        #combine data into proper format
        data = [self.xlabel]+xdata

        #Include other options, supplied by **kwargs
        other = ''

        for option in kwargs:
            other += option + ': ' + kwargs[option] + ',\n'
            
        #input argument format to template is in dictionary format (see template for where variables are inserted)
        argDict = { 'data':str(data),
                    'title':self.title,
                    'functionName':slugify(self.title),
                    'height':self.height,
                    'width':self.width,
                    'logScaleFlag':'false',
                    'ylabel':self.ylabel,
                    'plotType':'Histogram',
                    'numFig':self.numFig,
                    'other':other}

        self.javascript = (graphPgTemplateStart+graphPgTemplate_hist+graphPgTemplateEnd) % argDict

        if disp:
            self.dispFile()