title: chart.js chart-click pass parameter in Angular controller
body: <p>I'm using chart.js/angular-chart.js to display some data in pie charts. </p>
  
  <p>I need functionality where when a user will click on a label within the chart pie the click event will copy over the selected chart value. </p>
  
  <p>I'm able to trigger the event by this action: </p>
  
  <pre><code>$scope.chartClick = function() {
                 alert('ok');
             }
  </code></pre>
  
  <p>And this is the markup I have:</p>
  
  <pre><code> &lt;canvas id="pie" class="chart chart-pie"
                    chart-data="data" chart-labels="labels" display="true" chart-click="chartClick()" chart-options="options"&gt;&lt;/canvas&gt; 
  </code></pre>
  
  <p>Any idea how I can pass some parameter to that event to actually get the value? </p>
  
  <h2>Edit</h2>
  
  <p>Full controller:</p>
  
  <pre><code>.controller('InvestorLtvReportController', [
      '$scope', '$http', '$state', function ($scope, $http, $state) {
          $scope.labels = [];
          $scope.data = [];
          $scope.options = {
              legend: {
                  display: true,
                  position: 'bottom',
                  labels: {
                      fontColor: 'rgb(255, 99, 132)'
                  }
              }
          };
  
          $scope.chartClick = function (points, evt) {
              console.log(points, evt);
          };
  
          $http({
                  url: 'http://myapi/api/Manage/GetUserRole',
                  method: "GET"
              }).success(function (data, status) {
                  $scope.isInvestor = false;
                  angular.forEach(data, function (value, key) {
                      if (value == 'Investor') {
                          $scope.isInvestor = true;
                      }
                  });
  
                  if (!$scope.isInvestor) {
                      $state.go('accountlogin');
                  } else {
                      $http({
                          url: 'http://myapi/api/investor/GetInvestorLtvReport',
                          method: "GET"
                      }).success(function (data, status) {
  
                          angular.forEach(data, function (value, key) {
                              $scope.labels.push(value.Amortisation);
                              $scope.data.push(value.PercOfFund);
                          });
                      }).error(function (data, status) {
                          console.log(data);
                      });
                  }
              })
      }
  ])
  </code></pre>