如何解决图表显示时,HighCharts会部分显示
当我尝试使用modules/exporting.js
将HighCharts图表导出到图像时,下载的图像仅包含部分图表。设置不同的widht
/ height
/ sourceWidth
/ sourceHeight
并不能解决问题。试图将我的数据插入jsfiddle示例-正常下载的png。
什么会导致此问题?
UPD: 这是我的图表设置
options: {
chart: {
type: 'line',backgroundColor: '#fff',height: 600
},title: { text: '' },subtitle: { text: '' },yAxis: {
gridLineWidth: 0,title: { text: 'Percentage' },min: 0,max: 100
},xAxis: {
tickInterval: 1,gridLineWidth: 1,minorTickInterval: 1,labels: {
enabled: false
},max: 120,scrollbar: {
enabled: true
}
},tooltip: {
pointFormat: '{point.tooltip}{series.name}: {point.y}%'
},plotOptions: {
series: {
cursor: 'pointer',turboThreshold: 0
}
},series: [ ],credits: { enabled: false },exporting: {
enabled: true,chartOptions: {
legend: { enabled: true },xAxis: [{ labels: { style: { fontSize: '5px' } } }]
}
}
}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。