           <div class=dygraph id=#{divid}><span class=loading>loading</span></div>
           </div")
         g = new Graph
-          name: 'foo'
+          name: $(this).attr('data-title')
           url: $(this).attr('data-url')
           div: divid
         .create()

      rollPeriod: 1
      showRoller: true
      strokeWidth: 1
    )

  create: ->

      $('.close-graph').click (event) ->
        event.preventDefault()
        $(this).parent().remove()
        dataDivId = $(this).attr('data-div-id')
        $("#menu-container a[data-div-id=#{dataDivId}]").removeClass('selected')

      $(this).toggleClass('selected')

