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

      new ChartDrawer target, chart




ChartDrawer = class ChartDrawer
  
  withinCapacity: (n) -> n

  __TS_FIELDS: do ((n) -> ('field' + n) for n in [1..8])

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


BarChartDrawer = class BarChartDrawer extends ChartDrawer
