title: How can I load a custom popup on a click event in Highcharts?
body: <p>I have a highcharts bar chart and when I click on it I want to load a custom popup screen. This is my HTML page and I use <a href="https://github.com/swimlane/angular-data-table" rel="nofollow noreferrer">angular-data-table</a> for it.</p>
  
  <pre><code>&lt;table datatable="ng" class="row-border hover"&gt;
  &lt;thead&gt;
      &lt;tr&gt;
          &lt;th&gt;ID&lt;/th&gt;
          &lt;th&gt;Description&lt;/th&gt;
          &lt;th&gt;Datasource&lt;/th&gt;
      &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody ng-controller="DashBoardcontroller"&gt;
      &lt;tr ng-repeat="w in dashboard.Widgets"&gt;
          &lt;td&gt;{{w.Id}}&lt;/td&gt;
          &lt;td&gt;{{w.description}}&lt;/td&gt;
          &lt;td&gt;{{w.datasource}}&lt;/td&gt;
      &lt;/tr&gt;
  &lt;/tbody&gt;
  </code></pre>
  
  <p></p>
  
  <p>When I click on the bar chart I want <a href="https://api.highcharts.com/highcharts/plotOptions.bar.events.click" rel="nofollow noreferrer">this template</a> to show up.  I saw in the documentation of high charts this:</p>
  
  <p>It shows a standard Alert popup. I use the chart from the documentation to test it:</p>
  
  <pre><code>Highcharts.chart('container', {
      xAxis: {
          categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
      },
  
      plotOptions: {
          series: {
              cursor: 'pointer',
              events: {
                  click: function (event) {
                      alert(
                          this.name + ' clicked\n' +
                          'Alt: ' + event.altKey + '\n' +
                          'Control: ' + event.ctrlKey + '\n' +
                          'Meta: ' + event.metaKey + '\n' +
                          'Shift: ' + event.shiftKey
                      );
                  }
              }
          }
      },
  
      series: [{
          data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]
      }]
  });
  </code></pre>
  
  <p>How can I load my HTML template as a popup? </p>
  
  <p>Kind regards </p>