0👍
There should be a chart-options attribute for the canvas.
You can add it like: chart-options="chartOptions"
.
Then on your controller you can change the tooltip template by using this code:
$scope.chartOptions = {
tooltipTemplate: "<%= value %>"
}
But i am not sure if it works properly in chartjs 2.0. For that you can check this issue here : https://github.com/chartjs/Chart.js/issues/2322
0👍
You could pass this to the attribute chart-options="options"
:
$scope.options= {
tooltips: {
callbacks: {
title: function(tooltipItem, data) {
return $scope.profile['detail']['freq-histogram']['long-labels'][tooltipItem[0].index];
}
}
}
};
Source:stackexchange.com