Highcharts Demo

author(s): Torstein Hønsi

HTML

<html>
<head>
<link href="https://fonts.googleapis.com/css?family=ZCOOL+KuaiLe" rel="stylesheet">
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<script src="https://code.highcharts.com/modules/offline-exporting.js"></script>
</head>
<body>
<div id="container"></div>
<button id="export">Export chart locally</button>
</body>
</html>

JavaScript

var chart = Highcharts.chart('container', {
  exporting: {
    fallbackToExportServer: false
  },
  
  title: {
   style: { 
      color: '#000',
      fontFamily : 'ZCOOL KuaiLe'
          }
       },
       
  series: [{
    data: [71.5, 106.4, 129.2, 176.0, 135.6, 148.5, 216.4, 194.1, 54.4]
  }]
});

$('#export').click(function() {
  chart.exportChartLocal();
});