I created a pie chart with chartjs, but when I click on a specific slice,
the click event is not taken.
View:
<div ng-controller="ProjectsController"><a>Projects</a><br></br><canvas
id="myPieChart" width="600" height="600" ng-click="chartClick()"></canvas>
Controller:
'use strict';
angular.module('Progs')
.controller('ProjectsController', ['$scope', '$rootScope', '$http', '$window',
'$state',function ($scope, $rootScope, $http, $window, $state) {...
$scope.chartClick = function (event) {
console.log('chartClick');
//console.log("segment: " + $scope.chart.getSegmentsAtEvent(event));
}...
What's wrong with my code?
Please note: I am not using angular-chart.js
same question
here:
http://stackoverflow.com/questions/35129771/ng-click-not-working-with-chart-js
thanks
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.