hierarchy information while using grouped category plugin in highchart -
while using grouped category plugin,
$('.highcharts-axis-labels text, .highcharts-axis-labels span').click(function () { console.log(this.textcontent || this.innertext); });
the above code snippet give info clicked xaxis label, there way ascertain parent of same?
you can use custom-events extenstion , add click event on xaxis labels. name of parent can extracted textstr value.
labels: { events: { click: function () { alert(this.parent.label.textstr); } } },
example: http://jsfiddle.net/taq9v/9/
Comments
Post a Comment