0

I am using Highstock V 1.2.5

I want to print chart with some custom HTML details on top of it.

I have created a div in my JSP with custom HTMLand tried adding it before body.appendChild(container); into exporting.js But, It didn't work.

Second, I have tried creating HTMl file and adding $("#tab2").html(); where tab2 is my container. But, No luck with that.

When I open the exported HTML its different than what I get from console.log($("#tab2").html()) and the copy it into HTML.

Is there any way to get container HTML into .js ?

4

1 回答 1

1

您可以通过这种方式编辑源代码:http: //jsfiddle.net/3bQne/497/

    // some custom code
    $(body).append('<div style="width:50px;height:50px; background-color: red"></div>');

    body.appendChild(container);

    // print
    win.focus(); // #1510
    win.print();
于 2013-09-19T11:53:58.560 回答