     $('.location_right').css('display', 'block')
     $('#loading_icon').css('display', 'none')
     @resizeCanvas()
+
+  onFluviewReceived: (ilidata) ->
+    @truthData = ilidata
+    @resizeCanvas()


  fetchNowcast: (loc) ->
    @chartData = null
    callback = (epidata) => @onNowcastReceived(epidata)
    Epidata_nowcast_single(getEpidataHander(callback), loc)

  onNowcastReceived: (epidata) ->
    current = epidata[epidata.length - 1]
    ili = '' + (Math.round(current.value * 100) / 100)
    if '.' in ili
      ili += '00'

  'epiweek': 201201 + 100 * Math.floor(i / 52) + i % 52
  'value': 1 + Math.random() * 3
  'std': 0.5 + Math.random() * 1
  'wili': 1 + Math.random() * 3

getEpidataHander = (callback) ->
  return (result, message, epidata) ->
