Chapter 14. Server-side Highcharts
The first edition of Learning Highcharts covered a number of approaches to run Highcharts on the server side. Since then, there has been significant development in this area. It turns out that Highcharts adopts PhantomJS (the headless webkit) for the server solution and PhantomJS/Batik for the server implementation in Java. We will also explore how we can create our own Highcharts server process using PhantomJS and how to use the official server-side script released by Highcharts.
In this chapter, we will cover the following topics:
- Why we want to run Highcharts on the server side
- Why PhantomJS and Batik are adopted by Highcharts
- The basics of PhantomJS and Batik
- Creating our own PhantomJS script to export charts
- How to use the Highcharts server-side script in both command-line and server modes