Highcharts.chart('container', {
chart: {
type: 'item'
},
title: {text: 'Breakdown of Minutes by Category', align:'left'},
credits: {enabled:false},
yAxis: {reversed: true},
plotOptions: {
item: {
marker: {symbol: 'square'},
}
},
series: [{
name: 'Category',
colors: ['#00BFB2','#48EB70','#EBCD49','#FF9D13','#F95738','#7F2FFF','#4DEAFF','#DCDCDC'],
layout: 'vertical',
data: chartData
}],
drilldown: {
series: [{
name: 'Somatic maintenance',
id: 'somatic maintenance',
data: drilldownData.filter(d=> d.id==='somatic maintenance').map(d=> [[d.name, d.y]])
}]
}
});