         $scope.trxList.totalRecords = response.data.meta.record_count
     )
 
-
   # Widget specific methods
   # --------------------------------------
   w.initContext = ->

      serie.name == "Cash flow"
    cashFlowSerie.data = []
    cashFlowSerie.type = 'area'

    totalOffset = 0.0
    if w.metadata.offset && w.metadata.offset.current && w.metadata.offset.current.length > 0

    }
    $scope.trxList.fetch().finally(-> $scope.trxList.show())

  imgSrc = (name) -> ImpacAssets.get(_.camelCase(name + 'LegendIcon'))
  imgTemplate = (src, name) -> "<img src='#{src}'><br>#{name}"
  legendFormatter = ->
    name = this.name
    return imgTemplate(imgSrc(name), name) unless name == 'Projected cash'
    imgTemplate(imgSrc(name), name) + '<br>' + imgTemplate(imgSrc('cashFlow'), 'Cash flow')

  w.format = ->
    # Chart basic options
