   drawChart: (data) ->
     newdata = @__structure(data)
     console.log newdata
-    redraw @target, @chart, newdata
+    @redraw newdata
 
 
 EggChartDrawer = class EggChartDrawer

    last = field1.values[field1.values.length-1]
    if last isnt @oldlast # if updated
      @oldlast = last
      redraw @target, @chart, newdata


BarChartDrawer = class BarChartDrawer extends ChartDrawer

require 'nvd3/build/nv.d3.js'


parseDateStr = d3.time.format.utc('%Y-%m-%dT%H:%M:%SZ').parse


getColor = (name) ->
