Chartjs-How to get tooltip on chart.js v1.x?

0👍

 new Chart(document.getElementById("location").getContext("2d")).Bar(barChartData2**)**,{
showTooltip: true,
tooltipTemplate: "<%= value %>",
 //Option for title font size in pixels
 tooltipTitleFontSize: 14, 

 //Option for tooltip title color
 tooltipTitleFontColor: "#eee",
 });

See the above code….are you missing a parenthesis after barChartData2?

Leave a comment