#NEWLINE# def HeatMap( data , x = None , y = None , values = None , stat = 'count' , xgrid = False , ygrid = False , hover_tool = True , hover_text = None , **kw ) : #NEWLINE# #INDENT# " Represent 3 dimensions in a HeatMap chart using x, y, and values.\n\n    Uses the :class:`~bokeh.charts.builders.heatmap_builder.HeatMapBuilder`\n    to render the geometry from values.\n\n    A HeatMap is a 3 Dimensional chart that crosses two dimensions, then aggregates\n    values  that correspond to the intersection of the horizontal and vertical\n    dimensions. The value that falls at the intersection is then mapped to a\n    color in a palette by default. All values that map to the positions on the chart are\n    binned by the number of discrete colors in the palette.\n\n    Args:\n        data (:ref:`userguide_charts_data_types`): the data source for the chart\n        x (str or list(str), optional): specifies variable(s) to use for x axis\n        y (str or list(str), optional): specifies variable(s) to use for y axis\n        values (str, optional): the values to use for producing the histogram using\n            table-like input data\n        stat (str, optional): the aggregation to use. Defaults to count. If provided\n            `None`, then no aggregation will be attempted. This is useful for cases\n            when the values have already been aggregated.\n        hover_tool (bool, optional): whether to show the hover tool. Defaults to `True`\n        hover_text (str, optional): a string to place beside the value in the hover\n            tooltip. Defaults to `None`. When `None`, a hover_text will be derived from\n            the aggregation and the values column.\n\n    In addition to the parameters specific to this chart,\n    :ref:`userguide_charts_defaults` are also accepted as keyword parameters.\n\n    Returns:\n        a new :class:`Chart <bokeh.charts.Chart>`\n\n    Examples:\n\n    .. bokeh-plot::\n        :source-position: above\n\n        from bokeh.charts import HeatMap, output_file, show\n\n        # (dict, OrderedDict, lists, arrays and DataFrames are valid inputs)\n        data = {'fruit': ['apples']*3 + ['bananas']*3 + ['pears']*3,\n                'fruit_count': [4, 5, 8, 1, 2, 4, 6, 5, 4],\n                'sample': [1, 2, 3]*3}\n\n        hm = HeatMap(data, x='fruit', y='sample', values='fruit_count',\n                     title='Fruits', stat=None)\n\n        output_file('heatmap.html')\n        show(hm)\n\n    " #NEWLINE# kw [ 'x' ] = x #NEWLINE# kw [ 'y' ] = y #NEWLINE# kw [ 'values' ] = values #NEWLINE# kw [ 'stat' ] = stat #NEWLINE# chart = create_and_build ( HeatMapBuilder , data , xgrid = xgrid , ygrid = ygrid , ** kw ) #NEWLINE# if hover_tool : #NEWLINE# #INDENT# tooltip = build_agg_tooltip ( hover_text = hover_text , aggregated_col = values , agg_text = stat ) #NEWLINE# chart . add_tooltips ( [ tooltip ] ) #NEWLINE# #UNINDENT# return chart