     @tick()
   
   buildChart: ->
-    @chart = new Rickshaw.Graph( {
+    @chart = new Rickshaw.Graph({
       element: document.getElementById('chart')
       width: 960
       height: 500
       renderer: 'line'
-      series: [
-          {
-            color: 'steelblue',
-            data: [ { x: 0, y: 23}, { x: 1, y: 15 }, { x: 2, y: 79 } ]
-          }, {
-            color: 'lightblue',
-            data: [ { x: 0, y: 30}, { x: 1, y: 20 }, { x: 2, y: 64 } ]
-          }
-        ]
-      #series: []
+      series: @values
+      min: 'auto'
     })
   
   drawChart: ->

class RickshawStripChart
  tickLength: 1000
  values: null
  year: 2015
  numCranes: 400

    offsets = years.map (x) -> Math.round(20*(Math.random()-0.65))
    start = @numCranes
    newVals = offsets.reduce ((l, r) -> l.concat([l[l.length-1]+r])), [start]
    newData = newVals.map (v, i) => { x: @year+i, y: v }
    @values.push({color: 'red', data: newData})

  tick: =>
    @extendData()
    @drawChart()
    @runNumber = @runNumber + 1
    console.log("Run number #{@runNumber}")
    setTimeout(@tick, @tickLength)

window.RickshawStripChart = RickshawStripChart
