I have the below code
function PrintImage(id) {
var canvas = document.getElementById(id);
var win = window.open();
win.document.write("<br><img src='" + canvas.toDataURL() + "'/>");
win.print();
win.location.reload();
}
I am trying to print the chart that i render through Chart JS. It is working in IE but not in chrome. Can someone have a look at the code and tell me what I might be doing wrong. In chrome the print window opens but it is just all white.
Thanks