Chart.js on web-app

2👍

Add this code in your var option

{
tooltipTemplate: "<%= value %>",
onAnimationComplete: function(){
                            this.showTooltip(this.segments, true);},
                        tooltipEvents: [],
                        showTooltips: true
}

this code in arguments of charts(near option).->

{ tooltipTemplate : "<%if (label){%><%=label%>: <%}%><%= value %>%", animateRotate: true }

And This one in anywhere in script tag

legend(document.getElementById("legendCont"), Data);

Leave a comment