Please help me. I am trying to convert a line chart to canvas image.
$scope.export = function() {
html2canvas($('#div'), {
useCORS: true,
onrendered: function(canvas) {
document.body.appendChild(canvas)
}
});
}