     scale = d3.scale.linear().domain(domain).range(range)
     return scale
 
-  draw_line : (x1, y1, x2, y2) ->
-    """
-    @plot_view.layer.add(new Kinetic.Line(
-      points: [x1, y1, x2, y2]
-      fill: 'red'
-      x:x1
-      y:y1
-      radius: 3
-      strokeWidth: .5))
-    
-    @plot_view.layer.draw()
-    """
-
-  write_text: (x1, y1, text) ->
-    """
-    @plot_view.layer.add( new Kinetic.Text({
-          x: x1,
-          y: y1,
-          stroke: '#000',
-          strokeWidth: 1,
-
-          text: text,
-          fontSize: 10,
-          fontFamily: 'Calibri',
-          textFill: '#555',
-          width: 50,
-          align: 'center',
-          fontStyle: 'italic',
-    }))
-    """
 
   render : ->
     super()
-    #
-    if @mget('orientation') == "left"
-      scale = @mget_ref('mapper').get('scale')
-      window.scale = scale
-      window.domain = scale.domain()
-      window.range = scale.range()
-
-      #domain are the real numbers being graphed
-      # nominals are the screen postions
-      origin = domain[0]
-      tick_step = (domain[1] - origin)  / @mget('ticks')
-
-      truncate = (val, decimal_places) ->
-        exp = Math.pow(10, decimal_places)
-        raised = val * exp
-        rounded = Math.round(raised)
-        return rounded / exp
-      
-      for i in [0..@mget('ticks')]
-        realX = (tick_step * i) + origin
-        screenX = scale(realX)
-        @draw_line(screenX, 0, screenX, scale(domain[1]))
-        @write_text(screenX, 0,  truncate(realX, 2).toString())
-    else
-      scale = @mget_ref('mapper').get('scale')
-      window.scale = scale
-      window.domain = scale.domain()
-      window.range = scale.range()
-
-      #domain are the real numbers being graphed
-      # nominals are the screen postions
-      origin = domain[0]
-      tick_step = (domain[1] - origin)  / @mget('ticks')
-
-      truncate = (val, decimal_places) ->
-        exp = Math.pow(10, decimal_places)
-        raised = val * exp
-        rounded = Math.round(raised)
-        return rounded / exp
-      
-      for i in [0..@mget('ticks')]
-        realY = (tick_step * i) + origin
-        screenY = scale(realY)
-        @draw_line(30, screenY, scale(domain[1]), screenY)
-        @write_text(0, screenY, truncate(realY, 2).toString())
-      
-        
+
     window.axisview = @
     node = d3.select(@el)
     node

      .tickPadding(@mget('tickPadding'))
    node.call(axis)
    node.selectAll('.tick').attr('stroke', @mget('tick_color'))

    

class BarRendererView extends PlotWidget
  initialize : (options) ->

    return null


#  tools

class PanToolView extends PlotWidget
