I am using Metronic Theme and it's using Chart.js. On tooltip i need to show only data without label. But when i don't give labels param charts working wrong.
var config = {
type: 'line',
data: {
labels: priceDate,
datasets: [{
label: "$",
borderColor: color,
borderWidth: border,
pointHoverRadius: 4,
pointHoverBorderWidth: 12,
pointBackgroundColor: Chart.helpers.color('#000000').alpha(0).rgbString(),
pointBorderColor: Chart.helpers.color('#000000').alpha(0).rgbString(),
fill: false,
data: priceList,
}]
},
options: {
tooltips: {
enabled: true,
},
responsive: true,
maintainAspectRatio: true
}
I solved issue with callback function.