I have these two fiddles - first and second.
in the first one I have written -
var chart = $('#container').highcharts();
chart.xAxis[0].setCategories(['J', 'F', 'M', 'A', 'N']);
this code within first if block and in the second i have written this in a different if block.
My doubt is that why only in the second one the categories are changed on selecting DATA SET B
please guide.