JSFiddle - React, Tailwind, and code Playground
JavaScript
toolTip: {
enabled: true,
backgroundColor: "rgba(68, 70, 79, 1)",
borderColor: "white",
shared: true,
contentFormatter: function(e){
var str = "";
for (var i = 0; i < e.entries.length; i++){
console.log(e.entries);
if (e.entries[i].dataSeries.visible === true)
{
var temp = '<font color="'+e.entries[i].dataSeries.color+'">' + e.entries[i].dataSeries.name +'</font> <font color="white"> : '+ e.entries[i].dataPoint.y + '</font><br/>' ;
str = str.concat(temp);
}
}
return (str);
}
},