I'm trying to get piecharts to render in the report i'm building. Presently it's just showing blank. Is there a a way to delay a few milliseconds after the charts are produced?
Hi, I got this module to work with my HTML with Chart.js and common issues and fix would include disabling your chart animations to prevent half rendered charts and extending the timeout of phantomjs.
With respect to getting a blank chart, my issue is usually caused by uncaught javascript errors or the using of some ES6 syntax such as template literals, hence, you might want to look into that.
You can refer to my code:
https://gist.github.com/chuabingquan/9827a3eb09cd4a2e27cf95dff7f09176
I have been trying to include the highcharts in the pdf and I was also getting the same issue(i.e. half rendered charts).
Is there a way to include the timeout so that the scripts will be rendered before the pdf is getting created.
There's a renderDelay option in v2.2.0.
You can also trigger the render manually if you set renderDelay to manual
Like in https://github.com/marcbachmann/node-html-pdf/blob/master/test/callback.html
https://github.com/marcbachmann/node-html-pdf/blob/master/test/index.js#L93
Hi, I got this module to work with my HTML with Chart.js and common issues and fix would include disabling your chart animations to prevent half rendered charts and extending the timeout of phantomjs.
With respect to getting a blank chart, my issue is usually caused by uncaught javascript errors or the using of some ES6 syntax such as template literals, hence, you might want to look into that.
You can refer to my code:
https://gist.github.com/chuabingquan/9827a3eb09cd4a2e27cf95dff7f09176
Still im unable to render charts in generated PDF. Can some one guide me or post sample code ? I have tried renderingDelay also .
Most helpful comment
Still im unable to render charts in generated PDF. Can some one guide me or post sample code ? I have tried renderingDelay also .