         mouse:
           track: true
 
-      graph = Flotr.draw(container, [values], graphOpts)
+      graph = Flotr.draw(container, dataSeries, graphOpts)
 
     render: ->
       @$el.attr('id', @id)

    initialize: ->
      @id = @model.cid

    valueChart: ->
      m = @model

      if m.get('display') == 'rate'
        data = m.get('rates')
        display = "Rate (%)"
      else
        data = m.get('values')
        display = "Volume"

      values = _.map(data, (v, i)->
        return [v.date.getTime(), v.value])

      container = $('#val-chart')[0]
      graphOpts =
        title: display
        bars:
          show: true
          barWidth: 1000 * 43000


      container = $('#rate-chart')[0]
      graphOpts =
        title: "Variance"
        colors: ["green", "red", "orange"]
        bars:
          show: true
          barWidth: 1000 * 43000
        xaxis:
          mode: 'time'
          labelsAngle: 45
