   "./tool",
 ], (_, Backbone, Tool) ->
 
+  colorToHex = (color) ->
+    if (color.substr(0, 1) == '#')
+        return color
+    digits = /(.*?)rgb\((\d+), (\d+), (\d+)\)/.exec(color)
+
+    red = parseInt(digits[2])
+    green = parseInt(digits[3])
+    blue = parseInt(digits[4])
+
+    rgb = blue | (green << 8) | (red << 16)
+    return digits[1] + '#' + rgb.toString(16)
+
   class HoverToolView extends Tool.View
     initialize: (options) ->
+      @div = $('<div class="bokeh_tooltip" />').appendTo('body')
+      @div.hide()
       super(options)
 
     bind_bokeh_events: () ->

      ]
      return [vx, vy]

    _select: (vx, vy) ->
      geometry = {
        type: 'point'
        vx: vx

        e.bokehX = e.pageX - left
        e.bokehY = e.pageY - top
        [vx, vy] = @view_coords(e.bokehX, e.bokehY)
        @_select(vx, vy, e)
      )
      @plot_view.canvas_wrapper.css('cursor', 'crosshair')

    pause:()->
      return null
