def HeatMap(data, x=None, y=None, values=None, stat='count', xgrid=False, ygrid=False, hover_tool=True, hover_text=None, **kw):
 kw['x'] = x
 kw['y'] = y
 kw['values'] = values
 kw['stat'] = stat
 chart = create_and_build(HeatMapBuilder, data, xgrid=xgrid, ygrid=ygrid, **kw)
 if hover_tool:
  tooltip = build_agg_tooltip(hover_text=hover_text, aggregated_col=values, agg_text=stat)
  chart.add_tooltips([tooltip])
 return chart

def HeatMap ( data , x = None , y = None , values = None , stat = 'count' , xgrid = False , ygrid = False , hover_tool = True , hover_text = None , ** kw ) : kw [ 'x' ] = x kw [ 'y' ] = y kw [ 'values' ] = values kw [ 'stat' ] = stat chart = create_and_build ( HeatMapBuilder , data , xgrid = xgrid , ygrid = ygrid , ** kw ) if hover_tool : tooltip = build_agg_tooltip ( hover_text = hover_text , aggregated_col = values , agg_text = stat ) chart . add_tooltips ( [ tooltip ] ) return chart
represent 3 dimensions in a heatmap chart using x .