       description: 'Total Active Subscriptions'
       color: 'green'
       strokeWidth: 1
-    lineMetadata[targetSubsID] =
-      description: 'Target Total Subscriptions'
-      color: 'gold'
-      strokeWidth: 4
-      opacity: 1.0
     lineMetadata[startedSubsID] =
       description: 'New Subscriptions'
       color: 'blue'

        max: d3.max(@subs[-timeframeDays..], (d) -> d.started + 2)

    else

      ## Total subs target

      # Build line data
      levelPoints = []
      for sub, i in @subs
        levelPoints.push
          x: i
          y: @targetSubCount
          day: sub.day
          pointID: "#{targetSubsID}#{i}"
          values: []

      levelPoints.splice(0, levelPoints.length - timeframeDays) if levelPoints.length > timeframeDays

      graph.lines.push
        lineID: targetSubsID
        enabled: true
        points: levelPoints
        description: lineMetadata[targetSubsID].description
        lineColor: lineMetadata[targetSubsID].color
        strokeWidth: lineMetadata[targetSubsID].strokeWidth
        min: 0
        max: Math.max(@targetSubCount, d3.max(@subs, (d) -> d.total))

      ## Cancelled


module.exports = class AnalyticsSubscriptionsView extends RootView
  id: 'admin-analytics-subscriptions-view'
  template: template

  events:
    'click .btn-show-more-cancellations': 'onClickShowMoreCancellations'
