       result
 
     $scope.visualisationData = $scope.calculateAlignmentVisualisation($scope.source)
-
-    $scope.yFunction = () ->
-      (d) ->
-        d[1]
-
-    $scope.xFunction = () ->
-      (d) ->
-        d[0]
-
 )
            alertService.add("danger", "Error: " + response.data.error, 6000)
      )

    $scope.visualisationData = []

    $scope.calculateAlignmentVisualisation = (source) ->

  replace: true
  restrict: 'E'
  templateUrl: 'units/partials/templates/unit-outcome-alignment.tpl.html'
  controller: ($scope, $filter, currentUser, unitService, alertService, gradeService, LearningAlignments, projectService, taskService, Visualisation) ->

    if $scope.project?
      $scope.source = $scope.project
