Our team is preparing to create an Angular-based web application featuring 15-20 unique charts utilizing HighCharts. One of the key requirements is the ability to export these charts into PowerPoint slides.
We are aware that HighCharts offers an option to export images. We plan to utilize a Ruby gem for embedding these exported images into PPT presentations, although there is also a Node module available for this purpose if needed.
However, the main challenge lies in the client's request for all graphs to be downloaded as a single PPT file with just one click, without any prior rendering of the charts by HighCharts when the button is clicked.
Question: Is there a way to export all these unrendered charts (with data retrieved from APIs) into images with a single click?
We have brainstormed a few potential solutions: 1. Load all charts but keep them hidden. Trigger the HighCharts export function invisibly upon click, download all images, and then embed them in a PPT. [This method may not be efficient, especially for large graphs that could slow down page loading.]
Utilize a headless browser to pseudo-render and export the charts as images before embedding them in a PPT. PhantomJS was suggested by some experts, though our concerns include authentication issues and re-login requirements with a headless browser.
Explore options for offline conversion and sending the PPT via email, although implementation details remain unclear at this stage.
If anyone has experience with or suggestions regarding this process, we would greatly appreciate your insights.