I am trying to implement Drill-down with stacked bar chart. Issue is when I click on chart it shows drill down detail but it shows more category then I am assigning. So, could you please help me to fix the issue?
My code is available in JSFIDDLE
function setChart(name, categories, data, color, level, type) {
alert("Chart should have categories :-" + categories.length)
chart.xAxis[0].setCategories(categories);
//chart.xAxis[0].categories = categories;
var dataLen = data.length;
for (var i = 0; i < chart.series.length; i++) {
chart.series[0].remove();
}
for (var i = 0; i < dataLen; i++) {
chart.addSeries({
type: type,
name: name,
data: data[i],
level: level,
color: color || 'white'
});
}
}