score:12

Accepted answer

Here is the url of the documentation on how to do this: http://api.highcharts.com/highcharts#plotOptions.series.point.events.click

Here is a good sample: http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/plotoptions/series-point-events-click-url/

The part of your code you want to update is here:

plotOptions: {
        bar: {
            dataLabels: {
                enabled: true
            }
        },
        series: {
            point: {
                events: {
                    click: function(){
                       // do whatever here
                    }
                }
            }
        }

    }

score:0

Uncaught TypeError: Object #<Object> has no method 'slice'

This is the error generated by the following line.

this.slice();

Remove it.

demo

The demo above will trigger click only for the serie which you bind the events, if you want to bind it to all series use @Jamiec suggestion.


Related Query

More Query from same tag