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

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


EggChartDrawer = class EggChartDrawer

      new ChartDrawer target, chart


ChartDrawer = class ChartDrawer
  

  redraw: (data) ->
    d3.select(@target).datum(data).call @chart

  withinCapacity: (n) -> n

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