V
V
Vladislav2015-09-24 14:47:34
JavaScript
Vladislav, 2015-09-24 14:47:34

How to make similar tooltip in chart.js angular?

I use Chart.js angular
to draw a graph, I need to somehow display additional hints for each point

$scope.labels = []; 
    $scope.series = []; 
    $scope.data = [];
    $scope.options = {
        tooltipTemplate: function(valuesObject){
                 
            return "point: "+ valuesObject.value;
        }
    };

data is filled with data, but how to display a certain value for each data[i] in tips
, for example, if these tips are in the same dataTooltip array, let it be, I would take them by index, data[i] , dataTooltip[i] if in function tooltipTemplate could get this index, how can I do?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question