-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
html2canvas does not export red lines #340
Comments
The arrows are generated in a different div.. in the bottom after the chart.. have you seen this? |
I found out. Actually the problem is that the div is set as Hidden: if you comment the line after this: f (this.vEvents.onLineContainerHover && typeof this.vEvents.onLineContainerHover === 'function') { Works like a charm. I did it only when I needed to export the b64, not during normal usage. |
alright!! and how are u using html2canvas? maybe we can incorporate this process in the docs on in code! thanks |
It is quite easy indeed, you just call html2canvas( [MAIN DIV CONTAINING THE CHART] ).then(function (canvas) { then you call toDataURL: imageData = canvas.toDataURL("image/png"); it gives you the base64 and you can embed it in an <img, send to an api to convert to jpg, and so on ... |
Hi everybody,
this is not exactly a jsgantt bug, but maybe someone had the same issue:
exporting the graph's div in html2canvas does not render the red arrows.
Any ideas / workarounds?
thanks!
The text was updated successfully, but these errors were encountered: