score:5

Accepted answer

if you want to attach additional data to points in a series you can initialize the points that need additional data as objects instead of arrays/ints. for example, with your code you could do:

series: [{
    name: 'song plays',
    data: [
       {x:'song_name1', y:123, songid:'song_id_1'},
       {x:'song_name2', y:234, songid:'song_id_2'}
    ]
}]

you can then get it from the point on click as event.point.songid. see this jsfiddle demo using point click and tooltip.

note that in many cases x in the object will not be required. it is often automatic and sequential.

score:2

you can try

alert(event.point.series.useroptions.data[event.point.x][2])

updated fiddle: http://jsfiddle.net/y4a2end3/2/

or this:

alert(event.point.series.useroptions.data[event.point.series.data.indexof(event.point)][2]);

Related Query

More Query from same tag