I am making a simple chart with react and typescript.
Requirement: Need to make all the values to display by default
Sample:
Things tried:
onAnimationComplete: function () {
datasets.forEach(function (dataset) {
dataset.points.forEach(function (points) {
ctx.fillText(points.value, points.x, points.y - 10);
});
})
}
But it looks like this is for version 1.0 but I am using version 3+ .
Working Example:
Could you please help to make the values on each node by default on load of the chart? Thanks in advance.