title: React plot options onclick event
body: <p>I have made a highcharts column chart in my react application, and am now trying to add an onClick event to the chart. My aim is that when the user click a column, I can obtain the values of the X and Y axis, and then call a function from the page.</p>
  
  <p>The onClick event is achieved using plotoptions, as follows:</p>
  
  <pre><code>plotOptions={{
    series: {
      cursor: 'pointer',
      point: {
        events: {
          click: () =&gt; {
            this.fuction.call(this, 1);
          }
        }
      }
    }
  }}
  </code></pre>
  
  <p>The problem with this is that I can call the function, but I cannot access the values of the column.</p>
  
  <p>So, I try this:</p>
  
  <pre><code>plotOptions={{
    series: {
      cursor: 'pointer',
      point: {
        events: {
          click: function () {
            console.log(this);
          }
        }
      }
    }
  }}
  </code></pre>
  
  <p>This way, I can access the values on the column, through <code>this</code> but cannot call the function, as this does not hold the current page object.</p>
  
  <p>My question is, how can I combine the two, so I can access the value of the selected column and call the function on the page?</p>
  
  <p>I have tried this:</p>
  
  <pre><code>plotOptions={{
    series: {
      cursor: 'pointer',
      point: {
        events: {
          click: function (e) {
            console.log(this);
            console.log(e);
          }
        }
      }
    }
  }}
  </code></pre>
  
  <p>Which gives me the onClick event, and the column, but not the current page object.</p>
  
  <p>I have also tried this:</p>
  
  <pre><code>plotOptions={{
    column: {
      cursor: 'pointer',
      point: {
        events: {
          click: (e) =&gt; { console.log(this); console.log(e);  }
        }
      }
    }                    
  }}
  </code></pre>
  
  <p>But this also does not give me what I need.</p>
  
  <p>I am sure this is not  very difficult, I just cannot find it, or the correct search term...</p>