Html2canvas Not Working For Multiple Div As Canvas
I have tried html2canvas for single div and it is working fine. Now I have 2 charts on page, so I want to capture both div in separate canvas and pass it as image. I tried followin
Solution 1:
Ok, I don't know the html2canvas library, but from the looks what is going wrong is that you're confusing the flow through the code. You are assigning to imageChartN
in a callback of the html2canvas function, so the if
is reached before the variables can be assigned. What you should check out is async.js
and use the async.parallel
function.
Post a Comment for "Html2canvas Not Working For Multiple Div As Canvas"