-
Notifications
You must be signed in to change notification settings - Fork 234
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
Add static image charts #138
base: master
Are you sure you want to change the base?
Conversation
It's working perfectly, but for a geochart (with a specific region or not) the cities don't appear in the picture. |
I found it easier to include an option to use google to render the chart, which will also work on GeoCharts. specify CHART { type: ..., columns: ..., options: { png: true}, ... } and modify templates/default/html/chart_report.twig as below, additional sorry ... indentation got a bit screwed up chart_report.twig
|
Google Charts must be generated client side, which stops them from being embedded in e-maiils, pdfs, etc.
This pull request uses phantomjs and imagemagick to render the charts, take a screenshot, and return a PNG image on the server.
Done:
/report/imagechart/?report=...
TODO: