@shankar.gidwani
i want to include chart image in pdf without interacting with browser.
You should use the headless browser to achieve this. Please take a look at this sample project on integrating CanvasJS with PhantomJS. Along with this, you can use rasterize.js API to capture the webpage in PDF format. Please take a look at this article on using rasterize.js on PhantomJS engine, which might be of help.
__
Priyanka M S
Team CanvasJS