甘特图实例中的子任务使用scrollbar
Highcharts.ganttChart(‘container’, { title: { text: ‘Highcharts Gantt With Subtasks’ }, xAxis: { min: today.getTime() - (2 * day), max: today.getTime() + (32 * day) }, yAxis:{ scrollbar:{ enabled:true } }
代码如下