I am working with a chartJS where I have callback function to display data in tooltip. As data increase overflow section of Tooltip is hidden from canvas. Is there a way to prevent overflow of tooltip and add a scrollbar to scroll the data in tooltip?
below is the section of tooltip config
options: {
responsive: true,
tooltips: {
yAlign: "bottom",
enabled: true,
callbacks: {
label: function () {
const item = ["Test1", "Test1", "Test1", "Test1", "Test1", "Test1", "Test1", "Test1", "Test1", "Test1", "Test1", "Test1", "Test1", "Test1", "Test1", "Test1", "Test1", "Test1", "Test1", "Test1", "Test1", "Test1", "Test1", "Test1", "Test1", "Test1", "Test1", "Test1", "Test1"]
let finalLabelValue = [];
item.map(single => finalLabelValue.push(single))
return finalLabelValue;
}
},
},
}
Is there a way to add scrollbar in tooltip and prevent overflow from canvas?