*no use of jquery
In this example I want to click a button in the tooltip and return the index of that point
Code: Select all
Tooltip.formatter: function(){
return ‘<button onclick=“classFunction(this.point.index)”>add comment</button>
}
classFunction(point){
//do something with point
}