title: How to attach click event function in Highcharts
body: <p>I am using Pie Highchart, I want to call a function on click event. I don't want to write this function logic as below. Is it possible to call a external function here.</p>
  
  <pre><code>      plotOptions: {
                              pie: {
                                  allowPointSelect: true,
                                  cursor: 'pointer',
                                  dataLabels: {
                                      enabled: false
                                  },
                                  showInLegend: true,
                                 point:{
                                    events:{
                                        click: function(oEvent){
                                          alert(oEvent.point.name);
  
                                        }
                                    }
                                 }
                              }
                          },
  </code></pre>
  
  <p>This call back function will have many lines of code, so I want to define it somewhere else and call it in plotoptions. Let me know, how to achieve it</p>