Code: Select all
tooltip: {
headerFormat: '<b>{point.name}</b><br>{point.start}<br>{point.end}',
xDateFormat: '%e. %b',
formatter: function(tooltip) {
let output = tooltip.defaultFormatter.call(this, tooltip);
customText = Math.round(this.point.completed *100);
if (customText) {
output.push(`<span>Completed: ${customText}%</span>`);
}
return output;
}
},