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?

i parent "forecast" when click "footwear" in above chart enter image description here

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

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -