CODE ONLY IN JAVA
There are Java methods to convert:
- Highcharts, Highcharts Stock and Apexcharts chart options to a base64 encoded image in PNG, JPEG, WEBP or PDF format
- HTML to a base64 encoded image in PNG, JPEG, WEBP or PDF format
- A URL to a base64 encoded image in PNG, JPEG, WEBP or PDF format
The library will start a Chrome headless server/or connect to an existing running Chrome headless server. It then establishes a Web Socket connection to the Chrome headless server and uses the DevTools Protocol to control Chrome.
There are methods to tune Chrome in high volume applications. See the Chrome.setPoolSize() method in the API.
Keep your confidential data secure. Chrome headless is running locally on your system. Your chart data used to generate the chart images does not leave your system.
(1) Get the instance of Chrome and start the Chrome headless server using all defaults.
In a web servlet application chrome.start() should be called once in Servlet.init().
(2) The ImageGenerator class provides all methods to generate chart images.
(4) Stop the Chrome headless server.
In a web servlet application chrome.stop() should be called once in Servlet.destroy().
Download an example Java application showing usage of the HyJavaImages library.
View the API for the HyJavaImages library.
Start a demonstration Java web application using the HyJavaImages library.
You must have Chrome 71 or later installed on your system. The library requires a Chrome version that supports the DevTools protocol v1.3.
Please refer to the Highcharts license page for further details.
A 30 day evaluation version of the HyJavaImages library is available to ensure the library meets your requirements.
The evaluation version is suitable for:
- Proof of Concept testing
- Integration testing
- Performance testing
If you have any further questions on the library or wish to test the evaluation version, please contact our support team via the Contact Us area on the home page.