I have requirement of pie chart in pie chart with exact occupancy (exactly same as below code).
Please check the below html code.
I could achieve it using below code.
But i need labels with a line like in canvasjs pie chart.
Given that the features you are looking for is already present in CanvasJS Charts, you can create using our library itself. Please, take a look at this documentation page for creating pie charts in few line of codes. You can also create doughnut charts and many other charts using our library.