Lets you print the StockChart programmatically.
var stockChart = new CanvasJS.StockChart("container", { . . . . }); stockChart.render(); stockChart.print();
Also See: