通过将此代码块添加到容器中,可以管理导出大小。
exporting: {
sourceWidth: 1502,
scale: 1,
chartOptions: {
chart:{
height: this.chartHeight
}
}
}
这将设置导出的大小。
Highcharts.chart('container', {
title: {
text: 'Highchart Export Image and Pdf'
},
subtitle: {
text: 'Changes the aspect ratio'
},
yAxis: {
title: {
text: 'Number of Employees'
}
},
plotOptions: {
series: {
label: {
connectorAllowed: false
},
pointStart: 100
}
},
exporting: {
sourceWidth: 1502,
scale: 1,
chartOptions: {
chart:{
height: this.chartHeight
}
}
},
series: [{
name: 'Trend for CPU usage',
data: [43934, 52503, 57177, 69658, 97031, 119931, 137133, 154175,43934, 3303, 57177, 9251, 97031, 119931, 137133, 154175,
43934, 6231, 57177, 69658, 97031, 119931, 137133, 154175
]
}]
});
http://jsfiddle.net/vt01yrxq/23