I am facing an issue while fetching the data from "this" which actually prints a JSON object on the console. If I am going to use "this.x" then I am getting a run time error.
formatter: function() {
console.clear();
console.log("Point Details: ",this);
}
the output of this console statement is:
{x: Array(1), y: 69, color: '#FFBF00', colorIndex: 0, key: 'ABCTest'}
Now if I do console like this-console.log(this.x)
I am getting this error:
Note: this code snippet is the part of Angular's Highchart tooltip formatted function.
Can anyone help me how I can access these values using "this" plus "." operator.