While placing chart.js Doughnut Chart inside Primeng Carousel, the text inside the canvas seems blurred/distorted a little bit

0πŸ‘

βœ…

The issue was – the canvas was redrawing on itself again and again due to the loops in carousel, so the image was appearing a little blurry, what I did was
ctx = chart.chart.ctx; ctx.clearRect(0,0,chart.chart.width,chart.chart.height); in the beforeDraw method.

Leave a comment