I've been trying to enhance the Radar chart in chart.js by adding tooltips, but so far I haven't had much success.
Here are the three methods I attempted:
1st Method:
var options = Chart.defaults.global = {showToolTips:true};
new Chart(ctx).Radar(data,options);
2nd Method:
new Chart(ctx).Radar(data,{showTooltips:true);
3rd Method:
In my project's chart.min.js file, I tried adding showTooltips:true
to the global properties for the Radar chart.
Unfortunately, all three approaches failed. To make matters worse, the first method doesn't even render the chart and leads to an error message in the Chrome console:
Uncaught TypeError: Cannot read property 'global' of undefined
I'm at a loss here. Any help would be greatly appreciated! Thank you in advance!