Code: Select all
exporting: {
chartOptions: {
xAxis: [{
categories: cats,
labels: {
rotation: categoryRotation
},
max: categoryCount,
}]
},
sourceHeight: categoryHeight,
sourceWidth: categoryWidth,
Code: Select all
chart: {
backgroundColor: 'whiteSmoke',
events: {
drilldown: function () {
categoryHeight = 400;
categoryRotation = 90;
switch (this.ddDupes[0]) {
case 'elem':
case 'elem2':
cats = categoriesElem.slice();
categoryCount = categoriesElem.length - 1;
categoryWidth = 6000;
refChart.xAxis[0].setCategories(categoriesElem);
break;
case 'mid':
case 'mid2':
cats = categoriesMid.slice();
categoryCount = categoriesMid.length - 1;
categoryWidth = 2500;
refChart.xAxis[0].setCategories(categoriesMid);
break;
case 'high':
case 'high2':
cats = categoriesHigh.slice();
categoryCount = categoriesHigh.length - 1;
categoryWidth = 2000;
refChart.xAxis[0].setCategories(categoriesHigh);
break;
default:
break;
}
refChart.xAxis[0].update({ max: 5 }, true);
this.update({
scrollbar: {
enabled: true,
}
}, false);
},
drillupall: function () {
cats = categoriesSL.slice();
categoryHeight = 300;
categoryWidth = 500;
categoryRotation = 0;
categoryCount = categoriesSL.length - 1;
refChart.xAxis[0].setCategories(categoriesSL);
refChart.xAxis[0].update({ max: categoriesSL.length - 1 }, true);
this.update({
scrollbar: {
enabled: false
}
}, false);
}
},
type: 'column',
},