【发布时间】:2020-01-21 18:23:50
【问题描述】:
在fullscreen 模式下查看时,我遇到了Highcharts Gantt 8.0.0 的问题,其中垂直滚动条似乎缺失。
Highcharts.ganttChart('gchart-container', {
// ... among other options, here are the related
// scrolling / exporting options being used
scrollbar: {
enabled: true
},
exporting: {
enabled: true,
// just trying a few different things here ...
chartOptions: {
xAxis: [{
max: null
}]
},
accessibility: {
enabled: true
},
menuItemDefinitions: {
"viewFullscreen" : { 'text': 'View Full Screen'},
"downloadPDF": { 'text' : 'Download PDF'},
"downloadPNG": { 'text' : 'Download PNG'},
"downloadJPEG": { 'text' : 'Download JPEG'}
},
buttons: {
contextButton: {
menuItems: ['viewFullscreen', 'separator', 'downloadPDF', 'downloadPNG', 'downloadJPEG']
}
}
},
});
在正常模式下查看图表时没有问题,因为它是在DOM 的#gchart-container div 中呈现的(请注意右侧的浏览器垂直滚动条) 。
相反,当单击导出按钮并选择“全屏查看”时,我拥有任务层次结构的全部功能(展开/折叠),但垂直滚动被禁用或删除...
关于如何在导出/全屏模式下启用垂直滚动有什么想法吗?提前谢谢!
【问题讨论】:
标签: highcharts scrollbar fullscreen highcharts-gantt