HighChart Exporting In Client Side
In this was you can avoid the hit going to http://export.highcharts.com/ while exporting in highchart
by Sibeesh Venu
HTML
<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>
<div id="myChart"></div>
JavaScript
$(function () {
$('#myChart').highcharts({
credits: {
enabled: false
},
exporting: {
chartOptions: {
plotOptions: {
series: {
dataLabels: {
enabled: true
}
}
}
},
scale: 3,
fallbackToExportServer: false
},
title: {
text: 'My blog vistor count for a week'
},
subtitle: {
text: 'Monday to Sunday'
},
chart: {
type: 'area'
},
xAxis: {
categories: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat',
'Sun']
},
series: [{
name:'Visitor Count',
data: [1005, 558, 1467, 707, 1289, 867, 543]
}]
});
});