@sailaja,
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.
___
Suyash Singh
Team CanvasJS