Skip to content

Printing chart in a div #9391

Answered by nsartor
nsartor asked this question in Q&A
Jul 11, 2021 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

I think I got it - if anyone else is having the same issue, the solution for chrome is:

setTimeout(function() { // Chrome
    a.print();
    a.close();
  }, 0);

https://jsfiddle.net/0hkyj5bx/

Thanks @LeeLenaleee for your help.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@nsartor
Comment options

@LeeLenaleee
Comment options

@nsartor
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by nsartor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants