 
   return maxValues
 
-progressionDataToPoints = (data, bucketWindow, dataPoints) ->
+progressionDataToPoints = (data, dataPoints) ->
 
   sortedData = _.sortBy _.flatten(data), (submission) ->
     return submission.time
 
   min = _.first(sortedData).time
   max = _.last(sortedData).time
+  bucketWindow = Math.max(Math.floor((max - min) / dataPoints), 1)
 
   dataSets = []
 

    if data.data.length >= 2

      scoreData = (team.score_progression for team in data.data)
      dataPoints = _.zip.apply _, progressionDataToPoints scoreData, 2, 360

      teamNameData = (team.name for team in data.data)


        ["Time", "Score", {role: "tooltip"}]
      ]

      steps = progressionDataToPoints data.data, 360
      (graphData.push(["", score, score]) for score in steps)

      packagedData = google.visualization.arrayToDataTable graphData
