Although we tend to do things entirely digitally, there may be occasions where we will want to print a chart, be it for a report or some other purpose. In cases such as these, we need to make some small adjustments to make our charts look good for printing.
To set up a basic page and install jQuery and Highcharts, refer to the Getting ready section of the Creating your first chart recipe from Chapter 1, Getting Started with Highcharts.
To get started, perform the following steps:
Include
exporting.js
on our page as shown in the following code:<!-- Include the verbose version of Highcharts extras --> <script src='./bower_components/highcharts/highcharts- more.src.js'></script> <!-- Include the exporting module --> <script src='./bower_components/highcharts/modules/ exporting.src.js'></script>
Create a button as shown in the following code:
<div id='container'></div> <input...