-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chart to wkhtmltopdf not working #328
Comments
upon first glance... you don't need to include <script src="https://www.gstatic.com/charts/loader.js"></script> or
as the library was designed to handle all that |
Side question... What do you think about this? |
I thought the library brought in the loader.js as well, but for some reason the charts do not load without it (this may be caused by the auto_run config being set to false). The LavaJs looks good, making it it's own library outside of lavacharts will allow it to be used on a broader spectrum where the framework may not be Laravel. Nice work! |
What Version?
3.1.12
Issue
I am trying to display charts on a PDF using laravel-snappy (which uses wkhtmltopdf). This transforms the views easily into pdfs, so testing the html version, charts work fine.
I know the pdf needs time for the javascript to run, so I've applied the auto_run config to false so that I can run the
window.lava.run()
in a function when the body onloads.A test to make sure the chart drawing feature is working is taking an example from Google Charts and placing in this function, which it does perfectly.
Below is some of my view code and wkhtmltopdf options.
Is there something I am missing?
View Code
wkhtmltopdf Options
The text was updated successfully, but these errors were encountered: