Skip to content Skip to sidebar Skip to footer

Chartjs Show Value On Pie Chart

I am using chartjs and am trying to add the value of the the data array in the data object to the chart. I mean that if the data array looks like this [1,4,5] that on the pie chart

Solution 1:

Use this:

$scope.options = {
		        tooltipEvents: [],
		        showTooltips: true,
		        tooltipCaretSize: 0,
		        onAnimationComplete: function () {
		            this.showTooltip(this.segments, true);
		        },
		    }

Then refer it properly to HTML element..!!!

Post a Comment for "Chartjs Show Value On Pie Chart"