Print Dygraph chart
问题 I'm trying to print a Div, containing a dygraph as follows: javascript: <script type="text/javascript"> function PrintElem(elem) { Popup(document.getElementById(elem).innerHTML); } function Popup(data) { var mywindow = window.open('', 'my div', 'height=400,width=800'); mywindow.document.write('<html><head><title>my div</title>'); mywindow.document.write('</head><body >'); console.log(data); mywindow.document.write(data); mywindow.document.write('</body></html>'); mywindow.print(); mywindow