Please have a look at the jsfiddle here
to understand what I am upto.
To get the legendItemClick
working I need to click on the colored buttons in the legend.
But in this sample even clicking on the texts(right to the colored buttons) fires legendItemClick
click event.
what should I do to get the event fired even when I click on the text?
According to documentation legendItemClick is not supported in pie chart http://api.highcharts.com/highcharts#plotOptions.pie.events.legendItemClick but you can use workaround: http://jsfiddle.net/JkDrM/13/
I guess you have not framed your question correctly! "// some code here to achieve my goal" what goal?