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

angular ui router - 10 digest iterations reached in angularjs when using $state.go -

symfony - InvalidConfigurationException in SecurityExtension.php line 429: No authentication listener registered for firewall "secured_area" -

javascript - Can Piwik report referrer in real time? -