0

Am trying to access the value of the columns in my highchart stacked bar chart with the click event like this:

plotOptions: {
      series: {
        stacking: 'normal',
        cursor: 'pointer',
        point: {
          events: {
            click:function(event){
              console.log(event);
              //this.filter.emit([this.category, this.serie.name]);
              alert('Name: '+ this.category + ', Value: ' + this.y + ', Series :' + this.series.name);
            }
          }
        }
      }
    },

So far so good, but I need to use those values in my compoenent. The problem is that the 'this' keyword refers to the Point object and I dont see how i can use the parameters of my component if can't refer to them with 'this.'...

Is there a way to access both scope(my component and the Point object) in the function triggered by the click?

0 Answers0