From a29f9a676a6ea3bad56ede05cd1a1c82ffbbe8e9 Mon Sep 17 00:00:00 2001 From: pliablepixels Date: Sun, 10 Apr 2016 10:47:35 -0400 Subject: #219 - everything upgraded Former-commit-id: 15f58d10df83feda8199a1b904433e625ef36b44 --- www/lib/tc-angular-chartjs/README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'www/lib/tc-angular-chartjs/README.md') diff --git a/www/lib/tc-angular-chartjs/README.md b/www/lib/tc-angular-chartjs/README.md index 30722baa..74191e37 100644 --- a/www/lib/tc-angular-chartjs/README.md +++ b/www/lib/tc-angular-chartjs/README.md @@ -62,7 +62,7 @@ You will also want to give the chart some `data` and `options`. These can be pro by assigning $scope variables to `chart-options` and `chart-data` attributes on the same canvas element. ```html - + ``` ```javascript $scope.myData = [ @@ -75,6 +75,11 @@ $scope.myData = [ $scope.myOptions = { // Chart.js options can go here. }; + +$scope.onChartClick = function (data, event) { + console.log(data, event); +}; + ``` Using the `tc-chartjs` directive -- cgit v1.2.3