Javascript Chart Export pdf
Resolved
Hi there,
I have two questions:
1. export javascript charts to pdf seems now possible in Versjon 9.4. I tried this with a simple Chart from the "Highchart library". As you can see in the screenshot, in Webview everything works fine, but not the export. In pdf, the chart appears extremly shrinked. What is the problem. Maybe your pdf engine loose / cannot find the width/height of the chart or...????
2. Is there a way to listen, if a user klicks the pdf export button and to listen, if the pdf is finished?
Greetings
Jens
Hi Jens,
Do you notice a difference when trying to export the chart as a PDF in the report level vs on the dashboard?
Although I don't know of a way to listen to see when the PDF is finished, I do have a file for you which can be imported and contains some code for Javascript Charts. It delays their execution so it has some additional time to render. If you create a chart with this additional code it might help your issue.
Let me know how it goes.
Kind regards,
Chris
Hi Jens,
Do you notice a difference when trying to export the chart as a PDF in the report level vs on the dashboard?
Although I don't know of a way to listen to see when the PDF is finished, I do have a file for you which can be imported and contains some code for Javascript Charts. It delays their execution so it has some additional time to render. If you create a chart with this additional code it might help your issue.
Let me know how it goes.
Kind regards,
Chris
HI Chris,
no, i do not notice a difference btween dashboard and report. In both cases the same problem. I will check out your file. I cannot import it yet, because I get en error, that no connection to the database is possible. We do have installed the ski team example on the server.
Is ist possible, that you send me the plain js part ?
Merci
HI Chris,
no, i do not notice a difference btween dashboard and report. In both cases the same problem. I will check out your file. I cannot import it yet, because I get en error, that no connection to the database is possible. We do have installed the ski team example on the server.
Is ist possible, that you send me the plain js part ?
Merci
Hi Jens,
There's two reports with JSCharts in the export file. Here's the code itself:
With regards to the import, it should work if you select custom import, then import everything but the datasource and then match the content to your existing source.Kind regards,
Chris
Hi Jens,
There's two reports with JSCharts in the export file. Here's the code itself:
With regards to the import, it should work if you select custom import, then import everything but the datasource and then match the content to your existing source.Kind regards,
Chris
Replies have been locked on this page!