     routes: []
     cellInfo: []
     counts: []
+    sum: 0
     area: 0
     info: 0
     period: false

    setHash: ->
      param = if @modal then {modal: @modal, dep: @dep, dest: @dest} else {}
      location.hash = toURLParameter($.extend(param, @periodObj()))
    restoreHash: ->
      param = fromURLParameter(location.hash.replace(/^\#/, ''))
      if param.from?
        @period = true
        @from = param.from
        @to = param.to ? @to
      if param.modal?
        @modal = true
        @dep = param.dep ? @dep


  created: ->
    @loadAttr(id)
    param = fromURLParameter(location.hash.replace(/^\#/, ''))
    @restoreHash(param)
    @getJSON()
    @restoreModal(param)
    timeout = 0

  watch:
