Chartjs-How to set the ctx fill position on line doughnut label

1👍

Well you just have to add the thickness of the circle to your calculation, in the afterDraw function and than it should work

         ... 
         ctx.arc(
            (arc.round.radius + arc.round.thickness) * Math.sin(endAngle),
            (arc.round.radius + arc.round.thickness) * Math.cos(endAngle),
            arc.round.thickness,
            0,
            2 * Math.PI
          );
          ...

Here is the link to to the forked codesandbox

Leave a comment