I'm trying to build a bar chart with custom caret and position on Char JS 3.3.2.
I just added beforeDraw callback in plugin but it's not called ever.
plugins: {
beforeDraw: () => {
console.log('before Draw!!!!');
},
legend: {
display: false
},
tooltip: {
intersect: false,
position: 'myCustomPosition',
xAlign: 'center',
yAlign: 'bottom',
callbacks: {
label: function(context) {
var label = 'value : '
if (context.parsed.y !== null) {
label += context.parsed.y;
}
return label;
},
title: function() {
return null;
}
}
}
}
Anyone can help me to get answer for this problem?
My Code is here -> https://codepen.io/wsjraphael/pen/NWpZOjL